July 21st, 2000, 12:46 AM
hi!
how would you open a file that is on for example www.yahoo.com/index.html for reading. the only way i know how to do this for files on teh local drive is by using the
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.OpenTextFile("c:\\testfile.txt", ForWriting, true);
method. so instead of C:\\testfile.txt i want to read something from the web like http://www.yahoo.com/index.html but if i just replace it, it won't let me becaues the error is something like bad filename.
any ideas?
thanx for your help
how would you open a file that is on for example www.yahoo.com/index.html for reading. the only way i know how to do this for files on teh local drive is by using the
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.OpenTextFile("c:\\testfile.txt", ForWriting, true);
method. so instead of C:\\testfile.txt i want to read something from the web like http://www.yahoo.com/index.html but if i just replace it, it won't let me becaues the error is something like bad filename.
any ideas?
thanx for your help