Jestli vyčištění=vymazání obsahu, tak stačí použít otevření souboru v režimu rewrite.Edit: to je fofr...