From: Jeff H. <je...@Ac...> - 2006-01-31 17:24:59
|
Andreas Kupries wrote: > Having slept on this I believe the proper name for the > described functionality is 'clear'. > > If the file exists, clear its contents, make it empty. > And if it doesn't exist, create it as empty. > > Hemang's comment about creating the directory leading to the > file is correct however. I agree that this is something the > command should do, given my description. This was no problem > for me so far because it was not used in context where the > directory would not exist. Please provide an example of this that this isn't better handled with: set fd [open $filename w] Jeff |