%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/IO/
Upload File :
Create Path :
Current File : //proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/IO/write-c.ri

U:RDoc::AnyMethod[iI"
write:ETI"IO::write;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[
I"IOpens the file, optionally seeks to the given <i>offset</i>, writes ;TI"5<i>string</i>, then returns the length written. ;TI"E<code>write</code> ensures the file is closed before returning. ;TI"IIf <i>offset</i> is not given in write mode, the file is truncated. ;TI"$Otherwise, it is not truncated.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[	I"4IO.write("testfile", "0123456789", 20)  #=> 10
;TI"e# File could contain:  "This is line one\nThi0123456789two\nThis is line three\nAnd so on...\n"
;TI"4IO.write("testfile", "0123456789")      #=> 10
;TI")# File would now read: "0123456789"
;T:@format0o;
;	[I"KIf the last argument is a hash, it specifies options for the internal ;TI",open().  It accepts the following keys:;T@o:RDoc::Markup::List:
@type:	NOTE:@items[	o:RDoc::Markup::ListItem:@label[I":encoding;T;	[	o;
;	[I"string or encoding;T@o;
;	[I"0Specifies the encoding of the read string. ;TI"1See Encoding.aliases for possible encodings.;T@o;;[I"
:mode;T;	[	o;
;	[I"string;T@o;
;	[I"CSpecifies the <i>mode</i> argument for open().  It must start ;TI"?with "w", "a", or "r+", otherwise it will cause an error. ;TI"/See IO.new for the list of possible modes.;T@o;;[I"
:perm;T;	[	o;
;	[I"integer;T@o;
;	[I"3Specifies the <i>perm</i> argument for open().;T@o;;[I":open_args;T;	[o;
;	[I"
array;T@o;
;	[I"1Specifies arguments for open() as an array. ;TI"=This key can not be used in combination with other keys.;T:
@fileI"	io.c;T:0@omit_headings_from_table_of_contents_below0I"sIO.write(name, string [, offset])           -> integer
IO.write(name, string [, offset] [, opt])   -> integer
;T0[I"(*args);T@KFI"IO;TcRDoc::NormalClass00

Zerion Mini Shell 1.0