ts wrote: >>>>>>"M" == Mark Slagell <ms / iastate.edu> writes: >>>>>> > >M> Does ARGF read all input at once (i.e., is it unsafe with very large >M> input files)? > > Probably I've not understood your question, but it depend of the method > used. > :-) okay, maybe I'm not being entirely clear. As I understand it, these are logically equivalent, but the first will work with any size input whereas the second will fail if input size exceeds available memory: (1) while (line=gets) { ... } (2) everything = readlines everything.each { |line| ... } So this is really an implementation question. I'm trying to figure out if ARGF.each{|line...} behaves like (1) or like (2). --Mark