From: Hemang L. <hl...@ci...> - 2006-01-31 18:06:05
|
Andreas Kupries wrote: >> 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. >>> You can use the proposed fileutil::write cmd with empty TEXT to do this. If you want to really make it convenient, let the TEXT argument be optional, so that one can simply call: ::fileutil::write /tmp/xxx Hemang. |