|
LPC Library Functions: read_buffer |
NAMEread_buffer() - read from a file and return a buffer, or return part of a buffer as a string SYNOPSISstring | buffer read_buffer( string | buffer src, int start, int len ); DESCRIPTIONIf 'src' is a string (filename), then the filename will be read, starting at byte # 'start', for 'len' bytes, and returned as a buffer. If neither argument is given, the entire file is read. If 'src' is a buffer, then characters are read from the buffer beginning at byte # 'start' in the buffer, for 'len' bytes, and returned as a string. Note that the maximum number of bytes you can read from a file and into a buffer is controlled via the 'maximum byte transfer' parameter in the runtime config file. This function is only available if the driver flag NO_BUFFER_TYPE is not defined. SEE ALSOwrite_buffer(), allocate_buffer(), bufferp(), read_bytes(), write_bytes() Truilkan |
|
Page design by Frank Jacquette & Tim Hollebeek Copyright (C) 1998 Tim Hollebeek & Frank Jacquette |
|