I think if your code does what you say (I haven't tested it), it probably
achieves it in the same way, with one less line of code. (Delete,
re-create.)
Maybe I should add that task (emptying a file) to
http://www.aspfaq.com/2039
--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:eg**************@TK2MSFTNGP11.phx.gbl...
Unless you need to hold on to non-inherited NTFS permissions or the
dateCreated property of the file, deleting it and recreating it is no
better or worse than any other solution really.
Ray at work
"Sugapablo" <ru********@sugapablo.com> wrote in message
news:sl***********************@dell.sugapablo.net. .. In article <OW**************@TK2MSFTNGP09.phx.gbl>, Aaron Bertrand - MVP
wrote: Delete it and re-create it?
Well I did figure that one out, I was just wondering if there was
a better approach.
--
[ Sugapablo ]
[ http://www.sugapablo.com <--music ]
[ http://www.sugapablo.net <--personal ]
[ su*******@12jabber.com <--jabber IM ]