Use echo to empty the text file

echo “” > a.txt

Guess you like

Origin blog.csdn.net/vxzhg/article/details/109726301