R
Roger Pack
Greetings all. For some reason the answer to this stumps me.
Say I have an existing file, 1K long, and I want to write something
right in the middle of it, without changing the file size.
I would have thought that
a = File.open 'file', 'a+'
a.seek 500
a.write 'abc'
a.close
would work but doesn't seem to. Thoughts?
-R
Say I have an existing file, 1K long, and I want to write something
right in the middle of it, without changing the file size.
I would have thought that
a = File.open 'file', 'a+'
a.seek 500
a.write 'abc'
a.close
would work but doesn't seem to. Thoughts?
-R