Appendix A. CRBasic Programming Instructions
FileReadLine
Reads a line in a file referenced by FileHandle and stores the result in a variable
or variable array.
Syntax
FileReadLine(FileHandle, Destination, Length)
FileRename
Changes the name of file on a CR1000 drive.
Syntax
FileRename(drive:OldFileName, drive:NewFileName)
FileSize
Returns the size of a file stored in CR1000 memory.
Syntax
FileSize(FileHandle)
FileTime
Returns the time the file specified by the FileHandle was created.
Syntax
Variable = FileTime(FileHandle)
FileWrite
Writes ASCII or binary data to a file referenced in the program by FileHandle.
Syntax
FileWrite(FileHandle, Source, Length)
Include
Inserts code from a file (Filename) at the position of the Include() instruction at
compile time. Include() cannot be nested.
Syntax
Include("Device:Filename")
NewFile
Determines if a file stored on the CR1000 has been updated since the instruction
was last run. Typically used with image files.
Syntax
NewFile(NewFileVar, "FileName")
RunProgram
Calls a secondary CRBasic program file from the current active program.
Syntax
RunProgram("Device:FileName", Attrib)
591