I want to be able to click a picture box that will clear a text files text not delete the text file but just remove the text inside sort of like resetting it. I want the picture box to work as a delete button pretty much. I can save text into the file and read it I just want to clear its contents.
StreamReader script = new StreamReader(@"tasks\task1.txt"); //locates task1
script == null;
That is sort of what I have but this does not work