| |
File Object
Contains:
Properties:
- Mode (read-only) - fmWide, fmUTF or fmPlain.
- FileName (read-only) - name of the file on the disk.
Functions:
- Close (without parameters) - close the file. If the file was opened to write, the file will be created on the disk, data will be written. The file will be not written until you close it. File will be also automatically written when you destroy its object. The file will be encoded using the mode you specified - fmWide, fmUTF or fmPlain.
- Write (text) - adds text to the end of the file. File should be opened to write.
- WriteLn (text) - adds text to the end of the file and carriage return/end of line symbols.
- Read (without parameters) - returns the rest of the file, which was opened to read.
- ReadLn (without parameters) - returns one next line of text from the file.
- Eof (without parameters) - returns true when the file was fully read.
|
|
|