SPC  Version 0.9.5
 All Files Functions Groups Pages
byte open ( const char *  mode)
inline

Open file.

Opens the log file. The operations that are allowed on the stream and how these are performed are defined by the mode parameter.

Parameters
modeThe file access mode. Valid values are "r" - opens the existing log file for reading, "w" - creates a new log file and opens it for writing.
Returns
The result code.
Examples:
ex_close.spc, ex_open.spc, ex_read.spc, ex_stat.spc, and ex_write.spc.