Feb 13, 2001 #1 mitch77 Programmer Nov 16, 2000 42 PT Hi, I am using the FileSystem Object to read a file, but i want to know when the end of file occurs. Thanks, Mitch
Hi, I am using the FileSystem Object to read a file, but i want to know when the end of file occurs. Thanks, Mitch
Feb 14, 2001 #2 Kirilla Programmer Jul 12, 2000 101 HU Hi. Here is my sample code to detect the end of a text file: <html> <Script Language="JavaScript"> var ff=new ActiveXObject("Scripting.FileSystemObject" function readT() { var fo=ff.OpenTextFile("f:\\__Personal\\chkBoxes\\mytxt.txt" while(fo.AtEndOfStream == 0) { alert(fo.ReadLine()); } } </Script> </html> regards, Kirilla Upvote 0 Downvote
Hi. Here is my sample code to detect the end of a text file: <html> <Script Language="JavaScript"> var ff=new ActiveXObject("Scripting.FileSystemObject" function readT() { var fo=ff.OpenTextFile("f:\\__Personal\\chkBoxes\\mytxt.txt" while(fo.AtEndOfStream == 0) { alert(fo.ReadLine()); } } </Script> </html> regards, Kirilla