Gentee Programming Language > Documentation > Libraries Download documentation

buf.write

Writing data to a file.
 
uint buf.write(
      str   filename
)

Parameters

filenameThe name of the file for writing. If the file already exists, it will be overwritten.


uint buf.write(
      uint   handle
)

Parameters

handleFile identifier.


uint buf.write(
      uint   handle,
      uint   pos,
      uint   off,
      uint   size
)

Parameters

handleFile identifier.
posThe offset in the file.
offThe offset of the data being written in the buffer.
sizeThe size of the data being written.

Return value

If error occurs, function returns 0.

See also

    Buffer - binary data


 Copyright © 2004-2006 Gentee Inc. All rights reserved.