From: Dhruva Sagar Date: 2010-05-19T11:30:24+09:00 Subject: Re: Write whitespace to a file --0016e6476018028b630486e92a0e Content-Type: text/plain; charset=UTF-8 Well you could do f.puts ' '*5 + 'abc' On Wed, May 19, 2010 at 07:49, John Wu wrote: > 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 > -- > Posted via http://www.ruby-forum.com/. > > -- Thanks & Regards, Dhruva Sagar. --0016e6476018028b630486e92a0e--