Here is an example to read the last line of a text file:
<Script Language="JavaScript">
var ff=new ActiveXObject("Scripting.FileSystemObject"
var lastLine;
function readT()
{
var fo=ff.OpenTextFile("f:\\mytxt.txt"
while(fo.AtEndOfStream == 0)
{
lastLine=fo.ReadLine();
}
}
</Script>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.