467,161 Members | 852 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,161 developers. It's quick & easy.

Open a text file using VB6

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
  • viewed: 3421
Share:
1 Reply
100+
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.

Similar topics

7 posts views Thread by Hareth | last post: by
7 posts views Thread by Lumpierbritches | last post: by
2 posts views Thread by OutdoorGuy | last post: by
8 posts views Thread by someone | last post: by
22 posts views Thread by fniles | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.