I am using
PrintWriter pwriter = new PrintWriter("abc.txt");
From the javadoc:
fileName - The name of the file to use as the destination of this writer. If the file exists then it will be truncated to zero size; otherwise, a new file will be created. The output will be written to the file and is buffered.