Martin Weber
10/30/2003 4:01:00 PM
On Fri, Oct 31, 2003 at 12:46:20AM +0900, agemoagemo@yahoo.com wrote:
> Win32.
>
> What IO commands should be used with append mode?
Dunno about win32 in general, but why not simply use File.open/new ?
f = File.new("ayaken", File::CREAT|File::RDWR, 0644)
f.puts("banzai!");
f.close
f = File.new("ayaken", File::RDWR)
f.seek(8);
f.puts("ayaken!");
=> ayaken now contains (at least on Unix)
banzai!\n
ayaken!\n
(on windows probably have to seek one further for the \r)
-Martin