ts
11/16/2003 11:17:00 AM
>>>>> "A" == Afan Shah <afan_shah@yahoo.com> writes:
A> Could anyone please tell me how can I write to a file which already
A> contains some data without erasing any previous data?
open it with "a", for example
svg% cat aa
a
svg%
svg% ruby -e 'File.open("aa", "a") {|f| f.puts "b"}'
svg%
svg% cat aa
a
b
svg%
Guy Decoux