Read / Write
Author |
Message |
plzwork
|
Posted: Tue May 16, 2006 8:57 am Post subject: Read / Write |
|
|
As I said before, I am making a program to be used in restaurants. I already asked a question concerning the table layout part of it, and the feedback has really helped in me getting ahead in that section of the program.
Now, i'm doing the login screen... Its basically a username / password type of thing that has been done so many times before. However, im unfamiliar with vb, so there are many complications that come up for newbs like me.
Basically, im going to make a 'create account' form, where the user makes an acc name and pass, then it writes it to a text file. The first problem im having with this is having vb create a folder with a specific name in which the text file will be stored in (all the accounts will be stored in this same folder).
I know pretty well how to make vb 'write', but the 'reading' part has been getting confusing... I've looked on the tutorials on this site, but none have been particularly useful to me. If you could offer any advice on this, or even better, show me an example using a text document, it would be of much help.
Anyhow, thanks if you've taken the time to read this post.. If you have any input on any of the problems that im encountering, or just suggestions on how i should go about it, pls feel free to help!
-Plzwork! |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Darkmantis
![](http://compsci.ca/v3/uploads/user_avatars/26883420945d0bc0dc57ea.jpg)
|
Posted: Tue May 16, 2006 10:52 am Post subject: (No subject) |
|
|
I use this code:
code: | Open "h:/browzer/websites.txt" For Append As #1
Print #1, Text1.Text
Text1.AddItem Text1.Text
Close #1 |
basically the "Text1.additem text1.text" is the line that adds the text to the text file by reading from text1's text.[/code] |
|
|
|
|
![](images/spacer.gif) |
|
|