File Control Quick Reference
The following table lists methods that you can use to control files.
Statement | Purpose | Reference |
---|---|---|
Close |
Closes a file. |
|
Dir |
Returns a file name that matches a pattern. |
|
FileAttr |
Returns the file mode or the operating system handle for an open file. |
|
FileCopy |
Copies a file. |
|
FileDateTime |
Returns the last modification date and time of a file. |
|
FileLen |
Returns the length of a file. |
|
FreeFile |
Returns the next unused file number. |
|
GetAttr |
Returns attributes of a file, directory, or volume label. |
|
Kill |
Deletes a file. |
|
Lock |
Controls access to an open file. |
|
Lof |
Returns the length of a file in bytes. |
|
Name |
Renames a file or copies a file from one directory to another directory. |
|
Open |
Opens a file. |
|
Reset |
Closes open files and writes to disk any data that currently resides in buffers. |
|
SetAttr |
Sets attribute information for a file. |
|
Unlock |
Controls access to some or all of an open file by other processes. |