Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 28th, 2005, 08:19 AM
Registered User
 
Join Date: Jun 2005
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
 
Old June 28th, 2005, 12:53 PM
Friend of Wrox
 
Join Date: Jun 2003
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
 
Old June 29th, 2005, 07:53 AM
Registered User
 
Join Date: Jun 2005
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!

 
Old June 29th, 2005, 01:08 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

can you post the code you wrote so far?
Marco
 
Old June 29th, 2005, 11:26 PM
Friend of Wrox
 
Join Date: Dec 2004
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
 
Old April 23rd, 2008, 10:31 PM
Authorized User
 
Join Date: Apr 2008
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





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 08:30 AM
How to read simple txt file from URL? takica General .NET 1 August 6th, 2005 01:02 PM
Read data from a text file (*.txt) adriant42 Excel VBA 2 June 4th, 2004 06:32 PM





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