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
- AlignText - Align text
- ChangeAccess - Change file attributes
- Close - Close File handle
- Copy - Copy
- CurrentLine - Get current line number
- Delete - Delete a File
- Exists - File Exist
- FOut - Write line to file handle with indent
- FileHandle - Constructor
- GetLine - Get a line of Text
- Indent - Indent for line output
- IndentSize - Change indent size
- IsOpened - Checks whether the file handle is opened
- LinePosition - Positions the write cursor within the current line
- MakeDir - Create new directory
- Open - Open file handle
- OpenCreatePath - Open file handle
- Out - Write line to file handle
- Read - Read file
- ReadMP3Tags - - internal feature (not documented)
- Rename - Rename a File
- Unindent - Unindent line output
- Write - Write file
- ~FileHandle - Destructor

