Hi,
How can I append to a file in Windows Ruby 1.72? I tried:
File.open(‘filename’,‘w+’)
but that erases the file content.
Thanks,
Maurício
Hi,
How can I append to a file in Windows Ruby 1.72? I tried:
File.open(‘filename’,‘w+’)
but that erases the file content.
Thanks,
Maurício
File.open('filename','w+')
'a' write-only (start at EOF)
'a+' read-write (start at EOF)
Guy Decoux
Try “r+”
On Fri, 8 Nov 2002 21:51:38 +0900, Maurício briqueabraque@yahoo.com wrote:
Hi,
How can I append to a file in Windows Ruby 1.72? I tried:
File.open(‘filename’,‘w+’)
but that erases the file content.
Thanks,
Maurício