Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
[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 · ·