In an application I write text to a sheet SheetA.txt using something like :
$myfile = fopen("Teks/SheetA.txt", "w") or die ("Unable to open file!");
fwrite($myfile, $amount);
fclose($myfile);
At some point I want to empty the SheetA.txt and start writing from scratch. I can't figure out how to clear the sheet. How to do it, please ?