Josef Eschgfaeller on Sun, 26 Oct 2014 21:08:35 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

How cancel old content in write


Is there a function for writing to
a file, erasing the old content?
--------------------------------------------------
writetofile (file,text) =\
{system(Strprintf("rm -f %s",file));
write(file,text)}
--------------------------------------------------
Thanks
Josef Eschgfaeller