BinaryStream Class Reference


BinaryStream class is an instance returned by the FolderItem:BinaryStreamCreate or FolderItem:BinaryStreamOpen methods. Please take a look at the examples section for more details.
Method Description
Read Reads Count bytes from the input stream (passed as parameter) and returns a String.
Write Writes the passed data (as parameter) to the output stream.
Close Closes the stream (and hence the file opened by the stream).
EOF Returns true if the stream has reached the end of the file.
Length Returns the length of the file.
Position Gets the current file position in the BinaryStream. The first position is numbered zero.
LastErrorCode Reports the last file I/O error. Error numbers are given as original file system error codes.