Question:
Can I erase the contents of a text file (*.txt)?
Solution:
No, because there is no specific command that does so. One way to work around this is to use WriteToFile command while leaving it blank.
Example:
WriteToFile(“C:\TextFile.txt”, “”, 2)