Can you show me example in :
- Dim savefile As Long
-
savefile = FreeFile()
-
Open "I:\College Work ------- Updated 2008 March\new-work\savedfile.txt" For Output As #savefile
-
Write #savefile, (Text1.Text); Split(Text2.Text)
-
Close #savefile
I was reading, do i have to setup more variables for this :S?
im lost :/
ok, you're not that lost:
- Dim savefile As Long
-
savefile = FreeFile()
-
Open "I:\College Work ------- Updated 2008 March\new-work\savedfile.txt" For Output As #savefile
So far, so good, now you have your file number 'savefile' where you wanted it.
now, if i remember well, your first line was something like: "username","password".
now, lets create a couple of strings, and store the first line of your file there:
- dim Str1 as string
-
dim Str2 as string
-
input #savefile, str1 'reads "username"
-
input #savefile,str2 'reads "password"
-
now, all you have to do is compare str1 with user name, and str2 with password
you can put this two last lines inside a
While not eof(savefile) / wend
HTH