p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VB How-To (http://p2p.wrox.com/forumdisplay.php?f=78)
-   -   read txt file from vb6 (http://p2p.wrox.com/showthread.php?t=30925)

poupis June 28th, 2005 08:19 AM

read txt file from vb6
hi everyone,

cause I am new in VB6 can someone help me on how to open and read a txt file from VB6?

Thank you so much

marcostraf June 28th, 2005 12:53 PM

if you are new to vb6, I suggest you to start from here:


it explains how to open, read and write files using the vb 'native' file access, with sections ready to cut and paste. From there you can browse around and see all the file I/O section

Good luck,

poupis June 29th, 2005 07:53 AM

thank you for your early reply marco,

I still don't figure it out how it should be.
I have tried several ways found on the internet but with no result.
The basic functionality is to be able to open a .txt file saved on my local disk and then to parse the contents of it.
If anyone know on how to make it with coding I will appreciate it!

Thank you in advance!

marcostraf June 29th, 2005 01:08 PM

can you post the code you wrote so far?

Raghavendra_Mudugal June 29th, 2005 11:26 PM


check this link, it will show how to handle writing and reading text file


hope this helps.

With Regards,
Raghavendra Mudugal

pons_saravanan April 23rd, 2008 10:31 PM

I hope the question is answered but someone who is searching for a solution may find this helpful

here is a simple function which you can use to read text files and get the content in the string
Read Text File VB6

Pon Saravanan

All times are GMT -4. The time now is 01:18 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.