Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 119,782 VB Programmers for FREE! Ask your question and get quick answers from experts. There are 1,388 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



How to read & write to a text file in VB6

 
Reply to this topicStart new topic

How to read & write to a text file in VB6, how i can open for read write in vb

massoud
post 3 Jul, 2008 - 09:48 AM
Post #1


New D.I.C Head

*
Joined: 3 Jul, 2008
Posts: 1

how i can open for read write in vb
User is offlineProfile CardPM

Go to the top of the page


Locke37
post 3 Jul, 2008 - 10:29 AM
Post #2


I'm not a thief...I prefer the term TREASURE HUNTER!

Group Icon
Joined: 20 Mar, 2008
Posts: 596



Thanked 20 times

Dream Kudos: 300
My Contributions


vb
Open "FILEPATH" As #1 For Input/Output/Append/Random


Like that. smile.gif

(Pick one of the slashed things, you can only do one.)

Edit: Well, you can use whatever # you want, it's customary just to use #1, #2, #3, etc.

This post has been edited by Locke37: 3 Jul, 2008 - 10:40 AM
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 3 Jul, 2008 - 10:36 AM
Post #3


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,017



Thanked 88 times

Dream Kudos: 8100

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, GDI, Boo.Net

My Contributions


Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is online!Profile CardPM

Go to the top of the page

Locke37
post 3 Jul, 2008 - 10:38 AM
Post #4


I'm not a thief...I prefer the term TREASURE HUNTER!

Group Icon
Joined: 20 Mar, 2008
Posts: 596



Thanked 20 times

Dream Kudos: 300
My Contributions


...Heh. I was only gonna give them that much smile.gif, no help on writing or reading that file until they did show some code.

This post has been edited by Locke37: 3 Jul, 2008 - 10:39 AM
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 3 Jul, 2008 - 10:41 AM
Post #5


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,017



Thanked 88 times

Dream Kudos: 8100

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, GDI, Boo.Net

My Contributions


@Lock37: Oh I know, that was directed at the OP, not you silly smile.gif
User is online!Profile CardPM

Go to the top of the page

Locke37
post 3 Jul, 2008 - 10:50 AM
Post #6


I'm not a thief...I prefer the term TREASURE HUNTER!

Group Icon
Joined: 20 Mar, 2008
Posts: 596



Thanked 20 times

Dream Kudos: 300
My Contributions


smile.gif
User is offlineProfile CardPM

Go to the top of the page

born2c0de
post 4 Jul, 2008 - 06:48 AM
Post #7


printf("I'm a %XR",195936478);

Group Icon
Joined: 26 Nov, 2004
Posts: 3,815



Thanked 27 times

Dream Kudos: 2800

Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions


You can read my two tutorials on File Handling in VB6 here and here.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/15/08 09:38PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month