Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 28th, 2005, 09:19 AM
Registered User
 
Join Date: Jun 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #2 (permalink)  
Old 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
Default

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
Reply With Quote
  #3 (permalink)  
Old June 29th, 2005, 08:53 AM
Registered User
 
Join Date: Jun 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!

Reply With Quote
  #4 (permalink)  
Old 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
Default

can you post the code you wrote so far?
Marco
Reply With Quote
  #5 (permalink)  
Old June 30th, 2005, 12:26 AM
Friend of Wrox
Points: 687, Level: 9
Points: 687, Level: 9 Points: 687, Level: 9 Points: 687, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #6 (permalink)  
Old April 23rd, 2008, 11:31 PM
Authorized User
Points: 198, Level: 3
Points: 198, Level: 3 Points: 198, Level: 3 Points: 198, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2008
Location: singapore, singapore, Singapore.
Posts: 54
Thanks: 0
Thanked 4 Times in 4 Posts
Default

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
Read Text File VB6

Pon Saravanan

Last edited by pons_saravanan; November 30th, 2009 at 02:31 AM. Reason: Corrected
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
read any ".txt" file RodrigoGuteriez C# 3 November 18th, 2008 01:07 PM
need sample code for read txt file lawsoncobol Access VBA 4 July 16th, 2007 09:30 AM
How to read simple txt file from URL? takica General .NET 1 August 6th, 2005 02:02 PM
Read data from a text file (*.txt) adriant42 Excel VBA 2 June 4th, 2004 07:32 PM



All times are GMT -4. The time now is 07:23 PM.


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