| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/IO/ |
Upload File : |
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::BlankLine o: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