From: Kaye Ng Date: 2012-05-24T17:34:17+09:00 Subject: Simple IO question This prints every fifth character in a file: f = File.new("test.txt", "r") while a = f.getc puts a.chr f.seek(5, IO::SEEK_CUR) end I don't quite get the meaning of it. Is it like, "while the variable 'a' has a value or contains something, it should be printed onto the screen"? Why is it not "while a == f.getc" ? ( == instead of = ) What does getc here mean anyway? I know it reads a single character, correct? Thank you guys! -- Posted via http://www.ruby-forum.com/.