I have a file called userinfo.dat and I have my program write to it now I want it to read and show that data in two text boxes called txtUserName and txtPassword. This is what is in the userinfo.dat file: hello world
I want the "hello" to be in the txtUserName and the "world" in the txtPassword feild. Can anyone help me out here??
-Ben
P.S. I'm using VB 6
Thu, 05 May 2005 11:21:07 GMT
Luke Zhang [M #2 / 2
reading and inputing .dat file data
Dim ss As String
Open "d:\tfile.txt" For Input As #1
Input #1, ss txtUserName.Text=ss
Input #1, ss txtPassword.Text=ss
Close #1
Luke
(This posting is provided "AS IS", with no warranties, and confers no rights.)