file_out = File.new("file_name", "r")
file_out.each_line do |line|
  do_the_stuf_vith line
end

On Oct 3, 11:32 pm, Morgan Morgan <[EMAIL PROTECTED]>
wrote:
> ok so i'm trying to just read out a file line by line and i can't seem
> to figure out how to not get an EOFerror...  is there some way to tell
> when i get to the end of the file?
>
> i'm just reading out line by line, splitting it and sticking it in a
> database.
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to