Issue #908 has been updated by mame (Yusuke Endoh).

Status changed from Assigned to Rejected

I'm rejecting this issue since it has been stalled for five years.  If anyone really needs it, it would be good to re-organize the discussion all over again.

----------------------------------------
Feature #908: Should be an easy way of reading N characters from am I/O stream
https://bugs.ruby-lang.org/issues/908#change-67361

* Author: mike (Michael Selig)
* Status: Rejected
* Priority: Normal
* Assignee: akr (Akira Tanaka)
* Target version: next minor
----------------------------------------
=begin
 I know of no way of reading N characters (as opposed to bytes) and returning a string other than writing a loop with getc or each_char.
 
 Suggestions - one of:
 
 1) Change the "limit" paramater on IO#gets to mean characters rather than bytes. This would change existing behaviour, so may be unacceptable.
 
 2) Add an optional "limit" parameter to IO#getc, so IO#getc will read up to this many characters
=end




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>