Delete the contents of a txt file
Posted: Tue Oct 22, 2002 9:04 pm
I understand how to open and read the contents of a text file using fopen() but i am looking to find a way to clear out the txt file, or at least delete it and make a new one with nothing in it.
i have a text field that will just append the entered text to the end of the old text, i want it to overwrite it.
Any advice?
i have a text field that will just append the entered text to the end of the old text, i want it to overwrite it.
Any advice?