company logo

File operations

OSI supports implicit file or I/O operations, which can be called from any OSI functions. One way to read data from or write data to a file is the FileHandle object.. You may create any number of local or global file objects.

Local file objects will be closed when leaving the expression. Functions that can be called with file handle are

// local file object

VARIABLES

FileHandle              file;

PROCESS

if ( !file.Open('C:/tmp/test.txt') )

Message("File " + "'C:/tmp/test.txt'" + 'could not be opened');

file.Out("File opened successfully");

...

Related topics