⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
IO
/
View File Name :
readlines-c.ri
U:RDoc::AnyMethod[iI"readlines:ETI"IO::readlines;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"BReads the entire file specified by
name
as individual ;TI"Hlines, and returns those lines in an array. Lines are separated by ;TI"
sep
.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I""a = IO.readlines("testfile") ;TI"%a[0] #=> "This is line one\n" ;TI" ;TI"/b = IO.readlines("testfile", chomp: true) ;TI"#b[0] #=> "This is line one" ;T:@format0o; ; [I"GIf the last argument is a hash, it's the keyword argument to open.;T@S:RDoc::Markup::Heading: leveli: textI"Options for getline;T@o; ; [I"1The options hash accepts the following keys:;T@o:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I":chomp;T; [o; ; [I"BWhen the optional +chomp+ keyword argument has a true value, ;TI"=
\n
,
\r
, and
\r\n
;TI"/will be removed from the end of each line.;T@o; ; [I"2See also IO.read for details about open_args.;T: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"ĢIO.readlines(name, sep=$/ [, getline_args, open_args]) -> array IO.readlines(name, limit [, getline_args, open_args]) -> array IO.readlines(name, sep, limit [, getline_args, open_args]) -> array ;T0[ I"-(p1, p2 = v2, p3 = v3, p4 = v4, p5 = {});T@.FI"IO;TcRDoc::NormalClass00