seeking past end of file and filler

From: WL (me_at_privacy.net)
Date: 03/21/05


Date: Mon, 21 Mar 2005 02:06:50 +0000 (UTC)

First time posting w/ this client, so I hope it works...

I'm playing around with seek:

    set fid [open $name "w"]
    seek $fid $offset
    puts -nonewline $fid "\0"
    close $fid

With that code on windows xp (ntfs) and netbsd (ffs),
I get a file that is $offset + 1 in size. The content
of the file are all nulls ("\0").

Does tcl enforce the gap-filling with nulls? Or is that
dependent on the underlying system?

WL