Topic complex |
Text functions |
Function |
rewrite() |
Short |
Opens a text file to write |
Syntax |
REWRITE(path : STRING [;mode : INTEGER]) : INTEGER |
Parameter |
path : path of the text file
mode : 0 = ANSI, 1 = ASCII (default)
if path starts with "ramtext:..." a corresponding ramtext is opened. |
Return |
text handle of a file. |
See also: |
|
Description |
If error handling of the system has not been deactivated explicitly (.ec 1), the programm terminates if the requested file could not be opened.
If you start writing into a ramtext you should call the function Ramtext() before the Rewrite() to initialize it.
|