Hi,
I need to write many whitespaces to a file, what is the best way to do
that. For example, I have f.puts " abc" and there are 5 whitespaces
before abc, what is the best way to do this instead of typing 5
whitspaces?
Thanks
Hi,
I need to write many whitespaces to a file, what is the best way to do
that. For example, I have f.puts " abc" and there are 5 whitespaces
before abc, what is the best way to do this instead of typing 5
whitspaces?
Thanks
Well you could do
f.puts ’ '*5 + ‘abc’
On Wed, May 19, 2010 at 07:49, John Wu [email protected] wrote:
–
Thanks & Regards,
Dhruva S…
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs