|
|
 |
| VB How-To Ask your "How do I do this with VB?" questions in this forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the VB How-To section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

June 28th, 2005, 09:19 AM
|
|
Registered User
|
|
Join Date: Jun 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

June 28th, 2005, 01:53 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Alameda, ca, USA.
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
if you are new to vb6, I suggest you to start from here:
http://msdn.microsoft.com/library/de...fileaccess.asp
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,
Marco
|

June 29th, 2005, 08:53 AM
|
|
Registered User
|
|
Join Date: Jun 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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!
|

June 29th, 2005, 02:08 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Alameda, ca, USA.
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
can you post the code you wrote so far?
Marco
|

June 30th, 2005, 12:26 AM
|
|
Friend of Wrox
|
|
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hello
check this link, it will show how to handle writing and reading text file
http://in.geocities.com/raghavendra_...fileSample.zip
hope this helps.
With Regards,
Raghavendra Mudugal
|

April 23rd, 2008, 11:31 PM
|
|
Authorized User
|
|
Join Date: Apr 2008
Location: singapore, singapore, Singapore.
Posts: 49
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
Hi
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
http://www.vbknowledgebase.com/WebAp...nto-string-VB6
Pon Saravanan
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |