|Hi Sorry, |
Its not a school assignment.
I need to automate it so i can add the command for it to run from a batch file so when the other procedures are run, i can just add this one in as it needs to be done every 2 week cycles.
So i cannot use notepad, I have had a try in vb6 and C++ but have failed, i am a newcomer trying to learn but cannot figure it out. The data provided is dummy data.
My try in vb6 is displayed below:
Private Sub Command1_Click()
sTemp1 = "0PW222222PeterPiper PIP Peterpan, Panland"
sTemp2 = "0PW222222PeterPaner PAN Peterpan, Panland"
Dim fso As New FileSystemObject
Dim fsoTS As TextStream
Open "C:\tester\testnew\test.txt" For Input As #1
While Not EOF(1)
If sTemp$ = sTemp1 Then
'not sure what goes here
Line Input #1, temp$
I dont mind vb6, c++ or in a batch file. Thanks