[b][red]This message was edited by thegreenstar at 2003-6-4 18:31:40[/red][/b][hr]
Thanks, Zantos, the save code you wrote works great. I modified it to append instead of output. Here it is:
Dim n As Integer
Dim strUser As String, strPass As String, strOutPut As String
Dim TempLen As Integer
For n = 1 To Len(CMD)
If Mid(CMD, n, 2) = ", " Then
strUser = Mid$(CMD, 11, n - 11)
strPass = Mid$(CMD, n + 7)
strOutPut = strUser & vbCrLf & strPass
Open "C:Program FilesGameuserlog.txt" For Append As #1
CMD = ""
TempLen = 0
strUser = ""
strPass = ""
n = 0
It would be great if someone could write me a sub that scans userlog.txt for strUSER and strPASS (defined by the user) amongst multiple sets of these strings and if it can find a matching set will load strUSER and strPASS from the text document and put them in 2 strings: svdUSER and svdPASS. Thanks
0 · ·