> => #<File:./testfile > >> > > > > you just cripple the filename .. > > > > Really?? I don't see a crippled filename. >
You don't see that > is in the next line? the \n char is being interpreted. Just do: string.chomp This should work (as suggested before): string = Rails.root.to_s+'/archives/results/'+r.chomp If you really want to be portable you should be writing file paths like: File.join(Rails.root,"archives","results",r.chomp) -- ----)(----- Luis Mondesi Maestro Debiano ----- START ENCRYPTED BLOCK (Triple-ROT13) ------ Gur Hohagh [Yvahk] qvfgevohgvba oevatf gur fcvevg bs Hohagh gb gur fbsgjner jbeyq. ----- END ENCRYPTED BLOCK (Triple-ROT13) ------ -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.