No, you'll get "The\nin\nthe\nhat\n". A file is an ordered sequence of octets. There's no way for seek to magically shift the previous contents down when you start writing at the beginning. See perldoc -q "append to the beginning" for more details.
--
We're looking for people in ATL
In reply to Re: Using seek function to write out to top of file?
by Fletch
in thread Using seek function to write out to top of file?
by o2bwise
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |