From: Justin To Date: 2008-06-28T05:02:47+09:00 Subject: Re: File question Xuan wrote: > On Jun 27, 6:21�pm, Justin To wrote: >> -- >> Posted viahttp://www.ruby-forum.com/. > > Hello, > > Instead of c.chomp! as it was suggested, use c=c.chomp(" ") before the > "if"statement. The problem seems to be a white space at the end of > "c".. if you use print instead of puts you'll see it. > > About your second problem I just tested it and works fine for me. > Maybe txt file encoding is wrong...be sure to save it with utf-8 enc. Thanks, works great! -- Posted via http://www.ruby-forum.com/.