Multitech MT5634HD16 Guía de usuario Pagina 180

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 292
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 179
RASExpress User Guide
170 CommPlete Communications Server
FPUTS fputs(integer file_handle, string buffer [, integer count]) : integer;
Writes from buffer to the file specified by file_handle. The number of characters written
to the file is determined by count if specified; otherwise it is taken to be the string
length of buffer. Returns the number of bytes written to the file. If an invalid file han-
dle is passed, the command is ignored and 0 is returned.
Example
See fcreate command.
FREAD fread(integer file_handle, var string buffer, integer count) : integer;
Reads count bytes from the file specified by file_handle into buffer. If file_handle is
negative, the command is ignored and 0 is returned; otherwise the number of bytes
actually read is returned. If the end of the file is reached, the predefined variable EOF
is set. If an error is encountered while reading, a negative value is returned.
Example
See fcreate command.
FSEEK fseek(integer file_handle, offset, origin) : integer;
File_handle should not be negative. If file_handle is negative or invalid, the command is
ignored and -1 is returned. Offset indicates the number of bytes to move from the
origin specified. Origin can be one of three values: 0 for beginning of file, 1 for current
position, and 2 for end of file. If there is an error, -1 is returned, else the current file
pointer position is returned.
Example
See fcreate command.
FTOA ftoa(real float_no, var string buffer) : integer;
Converts float_no into a sequence of decimal digits and copies it to buffer. If the num-
ber is converted and copied to buffer, 1 is returned; otherwise 0 is returned.
Example
/* This script illustrates the ftoa command. */
proc main;
real x;
string str;
x = 1024.345;
ftoa(x, str);
fdisplay("Number converted is %f, converted string is
‘%s’^J^M", x, str);
endproc
Vista de pagina 179
1 2 ... 175 176 177 178 179 180 181 182 183 184 185 ... 291 292

Comentarios a estos manuales

Sin comentarios