read.FileInputStream: Reads the next byte of data from the file input stream

Description Usage Arguments Value Author(s) See Also

Description

Reads the next byte of data from the file input stream.

Usage

1
2
## S3 method for class 'FileInputStream'
read(this, b=NULL, off=0, len=NULL, ...)

Arguments

b

An optional vector to be filled with len bytes starting at position offset.

off

Offset in buffer vector where to start writing.

len

Maximum number of bytes to be read. If NULL, the length of the buffer minus the offset will instead be used. If both b and len is NULL, one byte will be read.

Value

Returns the next byte of data. If end of the file is reached, -1 is returned.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

For more information see FileInputStream.


HenrikBengtsson/R.io documentation built on May 6, 2019, 11:54 p.m.