KB-31515: Erasing the contents of a text file.

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)

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *