FR_SPECIAL

Syntax

Example

Description/Remarks

FR_SPECIAL file_number, endofline_ascii_code

 

Similar to FREAD, except it has an additional parameter to specify the end of line ASCII code to search for. FREAD terminates reading a line when it encounters a line feed character (10). FR_SPECIAL allows you to terminate a line with a carriage return character (13) in case a device outputs the end of line markers backwards (for example, FR_SPECIAL 1, 13). The end of line character is excluded from the string returned by the command.