From: Martin Weber Date: 2003-10-31T01:00:39+09:00 Subject: Re: Problem with seeking in existing files. 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