From: Justin To Date: 2008-06-05T02:43:26+09:00 Subject: Re: Beginner: Read file Hi Eric, Thanks so much for your help. I'm reading O'Reilly Ruby Cookbook, which I have found rather difficult to learn from. I'm also reading a free tutorial online at rubylearning.com. Neither provide enough clarification for me as I am new to Ruby. Also, I'm very confused on the regular expressions: Problem: I want to have a file that has information, for instance, Version #, Part # v.1.0-A, 000000 v.1.0-A, 000000 Now I want to store each character that's not a 'v', '.', or '-' as one string in one array called version (so element one should read "10A"). Then I want to say, "Ok I'm at a comma now, so I want to store the following information in the next array"... so I want to store the whole part# as one element of an array, called part (element one should read "000000"). Then... I want to say, "Ok, I'm at a newline, so start the same process again" basically, i want to compare if two lines have the same version# or part# so in this case, i want to check if version[0] == version[1], which should return true. ("10A"=="10A") Probably a very confusing explanation, but if you can help that'd be great. I'm trying to learn by doing some examples like this, but it's very difficult =( Thanks again!! -- Posted via http://www.ruby-forum.com/.