text file; Read/Write, HELP

anandporay
05-27-2003, 06:28 AM
Hi,
Sorry, this is not an answer but can you elaborate on how to use text files in VB to read or write to them? I know how to to interact with word or excel files;by inculding reference to excel object.But in case of text files what do reference we include?
Thanks.

Please dont hijack other member's threads

Squirm
05-27-2003, 06:51 AM
You use the Open statement to open a file for a specific mode (Input, Output or Append) then use statements such as Input, Line Input, Write and Print to read or write to the file. Then you Close the file. Other things you might want to look up are the Input$, FreeFile and LOF functions. Everything you need, including examples, is in MSDN.

We also have many examples of textfile I/O here in this forum, if you do a search.

ValentinBadea
05-27-2003, 07:09 AM
For much more help try this (It's free).

anandporay
05-27-2003, 07:27 AM
Thankx guys
that provided a good starting point for Text file IO programming in VB
Anand

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum