Raised This Month: $ Target: $400
 0% 

Overwrite a file with an empty one


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Jack86
Veteran Member
Join Date: Dec 2008
Location: Belgrade, Serbia
Old 07-12-2010 , 11:52   Overwrite a file with an empty one
Reply With Quote #1

I guess the solution for this is simple but nothing comes to my mind right now, i tried like this

format(szFilename, 63, "%s/file.txt", basedir)
delete_file(szFilename)
write_file(szFilename,"")

but the file is still there with its content.
__________________

Jack86 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode