Appendix A. CRBasic Programming Instructions
Syntax
CalFile(Source/Dest, NumVals, "Device:filename", Option)
FileCopy
Copies a file from one drive to another.
Syntax
FileCopy(FromFileName, ToFileName)
FileClose
Closes a file handle created by FileOpen().
Syntax
FileClose(FileHandle)
FileEncrypt
Performs an encrypting algorithm on the file. Allows distribution of CRBasic files
without exposing source code.
Syntax
Boolean Variable = FileEncrypt(FileName)
FileList
Returns a list of files that exist on the specified drive.
Syntax
FileList(Drive,DestinationArray)
FileManage
Manages program files from within a running datalogger program.
Syntax
FileManage("Device: FileName", Attribute)
FileOpen
Opens an ASCII text file or a binary file for writing or reading.
Syntax
FileHandle = FileOpen("FileName", "Mode", SeekPoint)
FileRead
Reads a file referenced by FileHandle and stores the results in a variable or
variable array.
Syntax
FileRead(FileHandle, Destination, Length)
590