From: "Hal E. Fulton" Date: 2001-01-16T12:49:55+09:00 Subject: [ruby-talk:9359] getc/ungetc? Hello all... I'm finding that ungetc doesn't seem to work as documented (Ruby 1.6.1 on SunOS 5.7 and on Win98). ungetc takes a parameter that doesn't seem to do anything... am I missing something? Code below. Actually, I think I like the real behavior better than the documented... 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