seeking past end of file and filler
From: WL (me_at_privacy.net)
Date: 03/21/05
- Next message: Vincent Thomas: "Re: tclhttpd and threads"
- Previous message: sigzero_at_gmail.com: "Re: Rivet Homepage"
- Next in thread: Jeff Hobbs: "Re: seeking past end of file and filler"
- Reply: Jeff Hobbs: "Re: seeking past end of file and filler"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Vincent Thomas: "Re: tclhttpd and threads"
- Previous message: sigzero_at_gmail.com: "Re: Rivet Homepage"
- Next in thread: Jeff Hobbs: "Re: seeking past end of file and filler"
- Reply: Jeff Hobbs: "Re: seeking past end of file and filler"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]