From: the Bare Date: 2002-07-20T04:21:08+09:00 Subject: Character Code Hi: My apologies if this is a ridiculously simple question... Giiven the following code: line = file.readline.strip # line = '; some line' if line[0].to_s == ';' # false! line[0] = 59, not ';' # ... end My problem is, line[0] returns a fixnum, which doesn't compare with the ';' string. So... how do perform this comparison? Thanks, Cameron -- "Perhaps a lunatic was simply a minority of one" George Orwell