Fix: Input past end of file
Error: Input past end of file Error Causing Code: <script type="text/javascript"> function readfile(){ var line var fso = new ActiveXObject("Scripting.FileSystemObject"); file = fso.OpenTextFile("C:\Temp\File1.txt", 1); var User = getuserName(); while (!file.AtEndOfStream) { line = file.ReadLine(); return line } file.Close(); } function getuserName() { var line var fso = new ActiveXObject("Scripting.FileSystemObject"); file = fso.OpenTextFile("C:\Temp\users.txt", 1, false); line = file.ReadLine(); return line file.Close(); } </script> Fixed Code: <script type="text/javascript"> function readfile(){ var line var User […]
Read more