Varkon MBS Programmers manual
Checks the existence and permissions of a named file.
status:=test_file(name, mode); int status; string name; string mode;
| name | - Name (including optional path) of file to test |
| mode | - What to test |
| "X" = Does the file exist ? | |
| "R" = Do I have permission to open the file for reading ? | |
| "W" = Do I have permission to open the file for writing ? |
None.
An INT value = 1 if the answer is yes or = 0 if the answer is no.
Mode codes may be upper or lower case.
Write permission is needed to delete or rename a file.
Varkon 1.19D svn # 120M