PDA

Click to See Complete Forum and Search --> : File I/O with IIS webclass.....


May 24th, 2000, 12:44 AM
Is it possible to use a simple...

Open file for input as Fileno

in a webclass. I'm trying to access a text file in a webclass using "Line input #FileNo, newline". Works fine in VB IDE but when run in compiled mode on another machine, I don't get any output. Is this possible with a webclass or can I do database only?

AmigaZoid

May 24th, 2000, 10:51 PM
Set fso = CreateObject("Scripting.FileSystemObject")
Set txf = fs.CreateTextFile("c:\yourtext.txt", True)


use the readline or readall methods to pull a string from the file