@OpenOSFile
Syntax
@OpenOSFile(OSPATH1;MODE2);
Description
Opens the OSFILE with the OSPATH OSPATH1 und outputs einen FILEHANDLE for it. TEXT MODE2 can be used to specify the open mode.
MODE2:
A=(Append) Open for appending data
B=(Binary) No conversion from CR to CRLF or vice versa (required as of V2.01)
C=(Create) Create a new file
E=(Error) Generate an error on create if the file already exists
R=(Read) Open for reading data
T=(Text) Conversion from CR to CRLF and vice versa (no longer supported as of V2.01)
W=(Write) Open for writing data
Z=(Zero) An existing file is truncated to length 0
N=(No Cache) Do not use a cache for this file
Example: @OpenOSFile(OSPATH1;MODE2)
FILEHANDLE1:=@OpenOSFile("C:\\TEST.TXT";"RB");
FILEHANDLE1:=@CloseOSFile(FILEHANDLE1);
The file "C:\\TEST.TXT" is opened for binary reading and then closed again.
Note : This text was machine-translated and may contain inaccuracies.
