User guide

7 RASExpress Script Language
CommPlete Communications Server 157
FCREATE
fcreate(string file_name) : integer;
Creates the file given in file_name.
FGETC
fgetc(integer file_handle, var string buffer) : integer;
Reads a character from the file given by file_handle into buffer.
FGETS
fgets(integer file_handle, var string buffer, integer max_len) : integer;
Reads a new line terminated string from the file given by file_handle into buffer.
FINDFIRST
findfirst(string file_pattern, integer attribute, var string file_name) : integer;
Looks for the first file of file_pattern with the given attribute.
FINDNEXT
findnext(var string file_name) : integer;
Looks for the next file of file_pattern with the given attribute.
FOPEN
fopen(string file_name [, string open_mode | integer open_mode]) : integer;
Opens file_name with the specified mode and returns a handle to the file.
FPUTC
fputc(integer file_handle, string buffer) : integer;
Writes a character from the buffer to the file.
FPUTS
fputs(integer file_handle, string buffer [, integer count]) : integer;
Writes from the buffer to file given file_handle.
FREAD
fread(integer file_handle, var string buffer, integer count) : integer;
Reads count bytes from the file specified by the file_handle into buffer.
FSEEK
fseek(integer file_handle, offset, origin) : integer;
Adjusts the file pointer for the given file.
FWRITE
fwrite(integer file_handle, string buffer, integer count) : integer;
Writes count bytes from the buffer to the file specified by the given file_handle.
GETFILEATTR
getfileattr(string file_name) : integer;
Gets the attribute of the file.