company logo

FileHandle - Interface to file access

The file access interface has been provided mainly for accessing files from within OSI expressions. The file access class provides several text file functionality for creating formatted ASCII text output.

File handle functions might be called in OSI expressions after creating an appropriate file handle instance.

EXPRESSION VOID ListFile ( string path ) {

VARIABLES

  FileHandle    file;

  string        result;

PROCESS

  if ( file.Exists(path) ) {

    file.Open(path,PIACC::PI_Read);

    while ( result = file.GetLine )

      Message(result);

  }

}

Attributes
    Functions