Describes the binary to read/write.
(default: read
) Write
if in write mode, Read
otherwise.
Creates a new BinaryStream object.
var myFile = new File( 'PROJECT/logs/HTTPServer.waLog' );
var readstream = new BinaryStream( myFile );
console.log( '[chunck] '+ readstream.getBuffer(1000).toString() );
// Important to close the stream after every use to release the referenced file
readstream.close();
Describes the binary to read/write.
(default: read
) Write
if in write mode, Read
otherwise.
Creates a new BinaryStream object.
var readstream = new BinaryStream( 'PROJECT/logs/HTTPServer.waLog' ); console.log( '[chunck] '+ readstream.getBuffer(1000).toString() ); // Important to close the stream after every use to release the referenced file readstream.close();