From: David Holroyd Date: 2006-09-26T22:33:53+09:00 Subject: Re: "unknown type of string?" On Tue, Sep 26, 2006 at 10:15:59PM +0900, Peter Bailey wrote: > RUBY's complaining about a string I want to write to a file. > The script line looks like this: > > file_contents << "\%\%Blank page for Asura.\n\%\%Page: > #{newtotalpages.to_i}\nshowpage\n" > > and, RUBY's complaint looks like this: > > E:/PageCounts/pagecounter.rb:42: unknown type of %string > file_contents << "\%\%Blank page for > Asura.\n\%\%Page: #{newtotalpages.to_i}\nshowpage\n" > ^ Are you missing a closing double quote on an earlier line? dave -- http://david.holroyd.me.uk/