From: Phillip Gawlowski Date: 2011-03-25T10:34:50+09:00 Subject: Re: Rewrite data to a file On Fri, Mar 25, 2011 at 1:04 AM, Emil Kampp wrote: > The syntax for opening the file would be: > > File.open('/path/to/file').write{ |f| f.write('some data') } Note for Windows users: File.open "c:/path with spaces to/file.name" and File.open "C:\\path with spaces to\\file.name" are equally valid (Windows accepts both forward- and backslashes in paths these days). -- Phillip Gawlowski Though the folk I have met, (Ah, how soon!) they forget When I've moved on to some other place, There may be one or two, When I've played and passed through, Who'll remember my song or my face.