company logo

FileHandle - Interface to file access

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);

  }

}

Functions