⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
IO
/
View File Name :
eof%3f-i.ri
U:RDoc::AnyMethod[iI" eof?:ETI"IO#eof?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"?Returns true if <em>ios</em> is at end of file that means ;TI"%there are no more data to read. ;TI"AThe stream must be opened for reading or an IOError will be ;TI"raised.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"f = File.new("testfile") ;TI"dummy = f.readlines ;TI"f.eof #=> true ;T:@format0o; ; [I"AIf <em>ios</em> is a stream such as pipe or socket, IO#eof? ;TI"=blocks until the other end sends some data or closes it.;T@o;; [I"r, w = IO.pipe ;TI"%Thread.new { sleep 1; w.close } ;TI".r.eof? #=> true after 1 second blocking ;TI" ;TI"r, w = IO.pipe ;TI"(Thread.new { sleep 1; w.puts "a" } ;TI"/r.eof? #=> false after 1 second blocking ;TI" ;TI"r, w = IO.pipe ;TI"r.eof? # blocks forever ;T; 0o; ; [I"@Note that IO#eof? reads data to the input byte buffer. So ;TI"FIO#sysread may not behave as you intend with IO#eof?, unless you ;TI"Dcall IO#rewind first (which is not available for some streams).;T: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"!ios.eof? -> true or false;T0[ I"();T@,FI"IO;TcRDoc::NormalClass00