Menu
Hi,
How do I read a local text file line by line, one line at a time.
I got upto opening a file, and can read whole file at a time. But I want to read just one line at a time. May be have a counter of lenght of the file and read only the counter number line at a time.
<SCRIPT language=JavaScript>
var fso = new ActiveXObject( ‘Scripting.FileSystemObject’ );
f = fso.OpenTextFile( “c:
//txt = f.Readall;
txt = f.Readline;
f.close();
write(txt);
</SCRIPT>
Thanks