Click to See Complete Forum and Search --> : File I/O


notacoder
April 2nd, 2001, 07:52 AM
Hello,

Does anyone know how to do simple file i/o??

I would like to open a file for read and then parse it line by line.

Thanks in advance,
notacoder

Iouri
April 2nd, 2001, 08:09 AM
Open "c:\temp\temp.txt" For Input As #1 'to read from
Do While Not EOF(1)
Line Input #1, sLine
Loop
Close #1



Open "c:\temp\temp.txt" For Output As #1 'to write to
Print #1, txtLetter.Text
Close #1


Iouri Boutchkine
iouri@hotsheet.com

notacoder
April 2nd, 2001, 08:32 AM
Great! Thanks a lot!