PickBASIC / FlashBASIC
%creat() function
.mdThe %creat() function creates a new host OS file or prepares to rewrite an existing host OS file designated by str for write only.
Syntax
file.descriptor = %creat(str, mode)
Parameter(s)
| str | Name of the file to create. |
| mode | Controls the file mode. Valid values of mode are in the include: mode.h. Combinations of the modes are obtained by adding several elementary modes together. |
Note: On D3, files are closed automatically when the FlashBASIC
program terminates.