IO.write(name, string, [offset] ) => fixnumIO.write(name, string, [offset], open_args ) => fixnum
Class Public methods
Opens the file, optionally seeks to the given offset, writes
string, then returns the length written. write
ensures the file is closed before returning. If offset is not
given, the file is truncated. Otherwise, it is not truncated.
If the last argument is a hash, it specifies option for internal open().
The key would be the following. open_args: is ex