Matrix1 Utility Plug-ins

# DATAFILE STRING TYPE

Syntax

DATAFILE STRING TYPE FileId, String Type String Type = DATAFILE STRING TYPE ( FileId )

Description

This command is used to determine how strings are written to and read from the data file. A newly opened file is set to string mode 1. - 0 = String data is terminated by a newline (ascii value 10) - 1 = String data is terminated by a CRLF combination (ascii value 10, preceded by an optional ascii value 13) - 2 = String data is terminated by a NULL byte (ascii value 0) - 3 = String data is terminated by a CR (ascii value 13) - 4 = String data is preceded by a single byte value containing the size of the string. - 5 = String data is preceded by a two byte value containing the size of the string. - 6 = String data is preceded by a four byte value containing the size of the string. - 7 = Read string data is as mode 1, while written string data is unterminated. For mode 4, the maximum string size is 255 characters. For mode 5, the maximum string size is 65535 characters. For mode 6, the maximum string size is limited by available memory. If a string exceeds the maximum string size allowed when using types 4, 5 or 6, then the string will be silently truncated as it is written. NOTE: This command has no effect on the DATAFILE DATASTRING$ or WRITE DATAFILE DATASTRING commands.

Go back to ...

Matrix1Util_22 Commands Menu
Matrix1 Utils Main Index
Matrix1 Utils Command List
Commands Menu
Main Menu

Copyright © Ian Mold - Matrix1 Software 2006 - 2011