Im trying to save both a password and a username into one file and im unable to say
what is a password and whats a username(in the file)
jritchie
Dec 8th, 1999, 09:49 AM
Dave what is your exact question, and where do you get the username and password from.
QWERTY
Dec 8th, 1999, 10:27 AM
Try this: add two textboxes and a commandbutton to your form, and then paste this code:
Option Explicit
Private Sub Command1_Click()
Open "C:\windows\desktop\password.txt" For Output As #1
Print #1, Text1.Text 'saves UserName
Print #1, Text2.Text 'saves Password
Close #1
End Sub
Private Sub Form_Load()
Dim Password As String
Dim UserName As String
Open "C:\windows\desktop\password.txt" For Input As #1
Line Input #1, UserName
Line Input #1, Password
Close #1
Text1.Text = UserName
Text2.Text = Password
End Sub
Hope this will help
------------------
Visual Basic Programmer
------------------
PolComSoft
You will hear a lot about it.