From: Dave Thomas Date: 2001-01-16T13:02:54+09:00 Subject: [ruby-talk:9360] Re: getc/ungetc? "Hal E. Fulton" writes: > What is broken: The interpreter, the docs, > or my mind? :) > > Hal > > #============== > f = File.new("testfile") > c = f.getc > puts c # 65 > > f.ungetc(69) > f.getc > puts c # 65 or (4) the test program ;-) f.ungetc(99) c = f.getc # <<< puts c Dave