FileWriter fwriter = new FileWriter("C:/Users/NULL NULL NULL/Desktop/New Text Document.txt", false); // set the write to false so we dont append to it
BufferedWriter write = new BufferedWriter(fwriter); // this is the type so we can write to it.
write.write(""); // write empty string to delet everything
write.close(); // close the buffer to gain back memory space that the buffer
took up.