I am trying to read a text file that contains the data read from a device connected to a modem.
Occasionally if there is corruption you get odd characters in the file mixed up with the regular text.
Eg "Hello?there" where the space between the two words is chr(26) instead of chr(32).
Character 26 creates a problem when handing the text file later.
If I use "Input#" or "Line Input#" in a loop, the read stops where the chr(26)is
It thinks an EOF has been detected.
How can I continue to read past Chr(26)? The whole file reads normally using notepad with a little box where chr(26) is.
A test file can be made with
Print #1,"Hello" & chr(26) & "there";
Occasionally if there is corruption you get odd characters in the file mixed up with the regular text.
Eg "Hello?there" where the space between the two words is chr(26) instead of chr(32).
Character 26 creates a problem when handing the text file later.
If I use "Input#" or "Line Input#" in a loop, the read stops where the chr(26)is
It thinks an EOF has been detected.
How can I continue to read past Chr(26)? The whole file reads normally using notepad with a little box where chr(26) is.
A test file can be made with
Print #1,"Hello" & chr(26) & "there";