File - File access
The class has been provided in order to support additional file access features especially from within OSI. When using other programming languages, it suggested to use language specific file support, which, usually, provides more enhanced features. The class supports files as well as directories, which are considered as specific kind of files.
Specialized file classes provide special support for binary and text file access based on Binary and String objects (TextFile, BinaryFile).
Attributes
Function Groups
- 1. Administration - Administrative functions
- 4. Operation - Operations
Functions
- File - Constructor
- accessMode - Access mode
- assign - Assign file
- close - Close file
- copy - Copy file
- directory - Directory path
- erase - Erase file
- eraseDirectory - Erase directory
- exist - Does file exist
- extension - Get file extension from file path
- fileName - Get file name from file path
- isDirectory - Does file path refer to a directory
- isFile - Does file path refer to a file
- isOpened - Is file opened
- lastModified - Timestamp for last file modification
- lastPosition - Last file position
- lock - Lock file positions
- locked - Is file area locked
- makeDirectory - Create new directory
- open - Open file
- path - File path
- permission - Change permissions
- rename - Rename file or directory
- size - Get file size
- tryErase - Check and erase file
- tryEraseDirectory - Check and erase directory
- unlock - Unlock file positions
- ~File - Destructor