Hi guys
I'm working with a script that puts a req file into a server (SFDM server, this is a server that we use to track the serial numbers of the packs in production).
Once that the server takes the REQ file, the server sends back a RSP file.
My problem is that I use the next lines:
fopen 0 Filepc READ ; Open file for read.
"The script Opens the file without problem"
if not ferror 0 ; Make sure there were no errors.
"But at this line and next, it says Invalid identifier error"
while not feof 0 ; Loop to end of file.
fgets 0 RspInfo ; Get line from file.
substr RC RspInfo 12 4 ;Get RC code from RSP File
"Then I process the file without problem"
if strncmp RC "EEEE" 4
delfile Filepc
goto Repeat
endif
"and the same error when it try to close the file"
fclose 0 ; Close the file.
delfile Filepc ; Delete RSP File
Any suggestion? I really appreciate it
Edu Melendez