Hello,
This what I have. File 1 contains Data. File 2 is a List. If the First 3 Characters in File 2 do NOT match the First 3 Characters in File 1, send the Line in File 1 to File 3.
This is what the Script Looks like; but it always sends Just the First Line of File 1 to File 3. I know it's a While Logic Problem..
proc Main
string sLine1
string sLine2
fopen 1 "C:\TEXT FILES\390NNX.TXT" READ TEXT
fopen 2 "C:\TEXT FILES\RCF_ORIG.TXT" READ TEXT
fopen 3 "C:\TEXT FILES\390_UPD.TXT" CREATE TEXT
while not feof 1
fgets 1 sLine1
while not feof 2
fgets 1 sLine2
if not strnicmp sLine1 sLine2 2
fputs 3 sLine1
endif
endwhile
endwhile
fclose 1
fclose 2
fclose 3
usermsg "DONE"
endproc
Any Ideas are Welcome
This what I have. File 1 contains Data. File 2 is a List. If the First 3 Characters in File 2 do NOT match the First 3 Characters in File 1, send the Line in File 1 to File 3.
This is what the Script Looks like; but it always sends Just the First Line of File 1 to File 3. I know it's a While Logic Problem..
proc Main
string sLine1
string sLine2
fopen 1 "C:\TEXT FILES\390NNX.TXT" READ TEXT
fopen 2 "C:\TEXT FILES\RCF_ORIG.TXT" READ TEXT
fopen 3 "C:\TEXT FILES\390_UPD.TXT" CREATE TEXT
while not feof 1
fgets 1 sLine1
while not feof 2
fgets 1 sLine2
if not strnicmp sLine1 sLine2 2
fputs 3 sLine1
endif
endwhile
endwhile
fclose 1
fclose 2
fclose 3
usermsg "DONE"
endproc
Any Ideas are Welcome