On Aug 26, 2011, at 23:51 , thelo.g thelo wrote:
> I tried but it doesn't work, is it possible that the mistake has a ling
> with \n at the end of r? because when I do:
> puts '"' + r + '"'
>
> I get
> "Archives-2011-08-26-09-56-00-UTC.xml
> "
\n doesn't matter
ruby-1.8.7-p174 :006 > File.new("./testfile",'w')
=> #<File:./testfile>
ruby-1.8.7-p174 :007 > File.new("./testfile\n",'w')
=> #<File:./testfile
>
you just cripple the filename ..
> --
> 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.
--
===============================================================================
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache
www.meinlschmidt.com www.maxwellrender.cz www.lightgems.cz
===============================================================================
--
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.