How to delete a file in latex code with normal complie tex. I create temporary files and when i finish using them I want to delete them. It not delete by bash or editor. Thankyou!
Asked
Active
Viewed 773 times
2
1 Answers
4
You could use the cool latex automation tool arara to automatically delete the text file after the compilation is finished:
% !TeX program = txs:///arara
% arara: pdflatex
% arara: clean: { files: [ foo.txt ] }
\documentclass{article}
\begin{document}
content...
\end{document}
samcarter_is_at_topanswers.xyz
- 158,329
\write18to call an external program/shell to delete a file. – Schweinebacke May 02 '17 at 15:47