|
|
|
|
|
- Properties specific to DiskFile variables
- Functions that use the DiskFile type
DiskFile (Type of variable) In french: FichierDisque
The DiskFile type is used to handle text files present on disk. You can define and change the characteristics of this file using different WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
MyFile is DiskFile = fOpen("File.txt")
MyFile.Write("Report")
Properties Properties specific to DiskFile variables The following properties can be used to handle text files: | | | Property name | Type used | Effect |
---|
DateCreated | DateTime | Date and time the file was created. | DateLastAccessed | DateTime | Date and time the file was last accessed. | DateModified | DateTime | Date and time the file was last modified. | Handle | System integer | - File system handle,
- -1 if no associated file.
This property is read-only. |
Remark: The file associated with a DiskFile variable is automatically closed outside of the scope of the variable. Remarks Functions that use the DiskFile type - Functions that use the standard syntax:
| | fChangeSize | Resizes an external file. | fClose | Closes an external file. | fCreate | Creates an external file. | fFileName | Returns the name of an external file currently open. | fFind | Finds a character string or a buffer in a file opened by fOpen. | fLock | Entirely or partially locks an external file. | fOpen | Opens an external file (ANSI or UNICODE) for programmatic manipulation. | fOpenTempFile | Creates and opens a temporary file. | fRead | Reads:- a block of bytes (characters) in an external file (ANSI or Unicode),
- the content of an external file (ANSI or Unicode) and assigns it to a memory area.
| fReadLine | Reads a line from an external file (ANSI or Unicode). | fReadLineRegularExpression | Reads a line in an external file, gets sections of this line according to a regular expression and assigns them to a variable. | fSeek | Gets and sets current position in an external file. | fSize | Returns the size of a file (in bytes). | fUnlock | Entirely or partially unlocks an external file. | fWrite | Writes:- a character string to an external file.
- a memory section.
| fWriteLine | Writes a line to a text file (ANSI or Unicode). |
- Functions that use prefix syntax:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|