I Need Help With Making A Txt File! Please Help!!!

Ok Im not on my mac at the moment to i cant post the code ive already done that needs help with…
BUT!..
i still need help.

ok i want to make a txt file with the name “logfile” with input data that says “clean!” and for it to be saved in location “/tmp/”

the thing is i dont want any noticable appication poping up an doing all this in the users face i want it to be done in the background PLEASE!.

MANY THANKS IN ADVANCE IS YOU REPLY! :d :d

do shell script "echo 'clean!' > /tmp/logfile.txt" --deletes everythinf in the file and puts 'clean!' in your file
do shell script "echo 'clean!' >> /tmp/logfile.txt" --appends 'clean!' in your file

thanks bro for the reply!.. but i figured out an much easier way :stuck_out_tongue: i was up till 2am figuring it out ahahah but the code you have given me is a fail safe sultion :smiley: thank you once again :slight_smile: