Click to See Complete Forum and Search --> : How to read the content of a local file.


Ric Lim
December 10th, 1999, 03:03 AM
Read the content that stored inside a text file.

valkyrie
December 10th, 1999, 03:28 AM
Hi,
First of all, you have to open the file for reading, with this code

Open "c:\test.txt" for Read as #1
'then do whatever you want, maybe you would like to pass something to a variable



Then you close the file after reading

Close #1



You have to close the file once you are done with it.I think that's about it. If you want to learn more about this, go to Microsoft's MSDN site at
http://www.msdn.microsoft.com

Hope that this helps.


____________________________________
The VB Bugs in my Life...

smalig
December 10th, 1999, 08:05 AM
Test it:
http://vbcode.webhostme.com/en/click.asp?id=57

smalig@hotmail.com
http://smalig.tripod.com