MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 216.73.216.153
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /proc/thread-self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/IO/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //proc/thread-self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/IO/eof-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"NThe stream must be opened for reading or an <code>IOError</code> will be ;TI"raised.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"f = File.new("testfile")
;TI"dummy = f.readlines
;TI"f.eof   #=> true
;T:@format0o;
;	[I"NIf <em>ios</em> is a stream such as pipe or socket, <code>IO#eof?</code> ;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"INote that <code>IO#eof?</code> reads data to the input byte buffer. ;TI"BSo <code>IO#sysread</code> may not behave as you intend with ;TI"B<code>IO#eof?</code>, unless you call <code>IO#rewind</code> ;TI"5first (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
ios.eof?    -> true or false;T0[I"();T@-FI"IO;TcRDoc::NormalClass00

MMCT - 2023