05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CREATEFILE(NAME)<br />

CRIMSON USER MANUAL - MODULAR CONTROLLER<br />

CREATEFILE(NAME)<br />

ARGUMENT TYPE DESCRIPTION<br />

name cstring The file to be created.<br />

DESCRIPTION<br />

Creates an empty file on CompactFlash. Note that the filing system used on the card does not<br />

support long filenames, and that if backslashes are included in the pathname to separate path<br />

elements, they must be doubled-up per Crimson’s rules for string constants as described in the<br />

chapter on Writing Expressions. To avoid this complication, forward slashes can be used in<br />

place of backslashes without the need for such doubling. The function returns a value of one<br />

if it succeeds, and a value of zero if it fails. Note that the file is not opened after it is<br />

created—a subsequent call to OpenFile() must be made to read or write data.<br />

FUNCTION TYPE<br />

This function is active.<br />

RETURN TYPE<br />

int.<br />

EXAMPLE<br />

Success := CreateFile(“/logs/custom/myfile.txt”)<br />

PAGE 308<br />

http://www.redlion.net/controller

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!