Reads the contents of a file associated with an I/O file object. This reads the contents of the file from the current offset for the number (num) of bytes, and places the bytes read into the buffer.
read({blob | string} *buffer, int num);
Parameter |
Description |
---|---|
buffer |
Pointer to a string or blob buffer to hold the bytes read. |
num |
Integer that specifies the number of bytes to read. |
Integer. Returns the number of bytes read, if successful, and -1, if failed.
Pointer to object |
Object |
---|---|
|
|
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |