By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,986 Members | 1,522 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,986 IT Pros & Developers. It's quick & easy.

Open a text file using VB6

P: 8
Hello, guyz!

I need help on how to open a text file and read it line by line using VB6. What would be the codes?

I have searched the forum and found one but it uses VB.net. :-(

thanks!
Nov 14 '06 #1
Share this Question
Share on Google+
1 Reply


100+
P: 267
Hello, guyz!

I need help on how to open a text file and read it line by line using VB6. What would be the codes?

I have searched the forum and found one but it uses VB.net. :-(

thanks!

hi

should be simple enough

try

Frn=FreeFile
open FileName for input as #Frn
While not EOF(Frn)
Line Input #Frn,p
.. do what you got to do with this line...
Wend
Close #Frn
Nov 14 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.