echo "text" >> 'Users/Name/Desktop/TheAccount.txt'

How do I make it so it creates the file if it doesn’t exist, but overwrites it if it already exists. Right now this script just appends.

8 Answers
8

Tags:

Leave a Reply

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