Bug #2377 » eof_patch3.diff
| io.c (working copy) | ||
|---|---|---|
|
* f.rewind #=> 0
|
||
|
* f.lineno #=> 0
|
||
|
* f.readline #=> "This is line one\n"
|
||
|
*
|
||
|
* Note that it cannot be used with streams such as pipes, ttys, and sockets.
|
||
|
*/
|
||
|
static VALUE
|
||
| ... | ... | |
|
* r, w = IO.pipe
|
||
|
* r.eof? # blocks forever
|
||
|
*
|
||
|
* Note that <code>IO#eof?</code> reads data to a input buffer.
|
||
|
* So <code>IO#sysread</code> doesn't work with <code>IO#eof?</code>.
|
||
|
* Note that <code>IO#eof?</code> reads data to the input buffer.
|
||
|
* So <code>IO#sysread</code> only works with <code>IO#eof?</code>
|
||
|
* if you call <code>IO#rewind</code> first (which is not available
|
||
|
* for some streams).
|
||
|
*/
|
||
|
VALUE
|
||
- « Previous
- 1
- 2
- 3
- Next »