From: Tim Hunter Date: 2008-06-26T01:02:27+09:00 Subject: Re: File writing Justin To wrote: > Hi, I know you can write to a file using 'w', but this erases all the > previous data. How can I add new items to an existing document without > losing the data? > > Thanks! Use "a" instead of "w". That will Append new data to the end of the file. -- Posted via http://www.ruby-forum.com/.