"and.u" <is.r / com.is-andy.com> writes: > How to limit string which return from IO::gets max length ? You could use #read instead http://www.rubycentral.com/ref/ref_c_io.html#read Dave