IO.read(name, [length [, offset]] ) â stringIO.read(name, [length [, offset]], open_args) â string
Class Public methods
Opens the file, optionally seeks to the given offset, then
returns length bytes (defaulting to the rest of the file).
read ensures the file is closed before returning.
If the last argument is a hash, it specifies option for internal open().
The key would be the following. open_args: is exclusive to others.
encoding
string or encoding
specifies encoding