Good afternoon, I'm starting in ruby,
I am grieving for a parser to a file.

file_example File.open = "foo.txt", "r"
file_example.each do | line |
puts line
end

here I can print all lines of the file.

but as I can get only specific lines and use them in a function?

ok. I I separate them with regex. but not know how to use these lines that 
separated within a function.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/3fe51b11-1dc5-4804-95c4-b48a8814ee33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to