how to clear the content of a file?

hi all,

Suppose i created one file and write the values in it. and after some time i like to clear the content of the file only (not deleted).

eg :
output to value("filename").
put unformatted 'something'.

if condition then
clear the content of the file
 

Casper

ProgressTalk.com Moderator
Staff member
How about:
Code:
output close. /* if you're still in the output stream */
if condition
output to value("filename").
output close.

OR you could do an os-command '> filename'.


Casper
 
Top