Writes the contents of the buffer for length (len) to the I/O file objects’s associated file starting from the current offset position in the file. If len equals zero, all data in the buffer is written to the file. If the I/O file object has “append” set to “on,” this method always appends the data to the file.
write(blob *buffer, int len);
write(string *buffer, int len);
write(string buffer, int len);
Parameter |
Description |
---|---|
buffer |
String object or a pointer to a string or blob object containing the data from which to write to the file. |
len |
The number of bytes to write. If len is 0, it writes all data in the buffer to the file. |
Integer. Returns the number of bytes written to the file, if successful, and 0, if failed.
Pointer to object |
Object |
---|---|
|
|
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |