@pid = File.new("filename")
@pid.each_line do |line|
@wid = line.split(" ")
puts @wid
end
am i doing something wrong?.. this just spits out the path to the file
instead of anything actually in the file.
Dejan Dimic wrote:
> 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]>
--
Posted via http://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
-~----------~----~----~----~------~----~------~--~---