Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.

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.

![]() |
Invisible app in C
|
Ant script for deleting d...
|

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