Computing.Net > Forums > Programming > Appending txt files in VB

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Appending txt files in VB

Reply to Message Icon

Name: Peter G
Date: February 18, 2004 at 06:01:25 Pacific
OS: XP Pro
CPU/Ram: AMD xp2800+/512DDR
Comment:

With any luck this ones quick and easy!

I'm pretty new to VB, just started it at college, and I'm trying to get my head round txt files.

I want to change specific details within a text file ie. somethings price:

Vodka,1.20
Whisky,1.20
Bacardi,1.20
Gin,1.20

(The project is to build a Bar POS program!)

I can open and view the file fine but can't work out how to edit it. I've been using listboxes (one for name & one for price side by side).

All I want is three buttons: `Add`, `Remove` and `Change Price`

All ideas are welcome :)

Cheers.



Sponsored Link
Ads by Google

Response Number 1
Name: drigz
Date: February 18, 2004 at 08:37:43 Pacific
Reply:

i would, on starting, open the .txt file using a filesystemobject (look on the msdn to see how to use these) and interpret all the data into an array or something, then, when the program is shut down or told to save, overwrite the original .txt file with the data from the array in the program.




0
Reply to Message Icon

Related Posts

See More


Invisible app in C Ant script for deleting d...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Appending txt files in VB

Read a txt file in Vb www.computing.net/answers/programming/read-a-txt-file-in-vb/7871.html

concatenating wave files in VB www.computing.net/answers/programming/concatenating-wave-files-in-vb/6272.html

play a mp3 file in vb or in html www.computing.net/answers/programming/play-a-mp3-file-in-vb-or-in-html/15624.html