Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to clear a text file in java

File file = new File("/path/to/file.txt");
PrintWriter writer = new PrintWriter(file);
writer.print("");
writer.close();
 
PREVIOUS NEXT
Tagged: #clear #text #file #java
ADD COMMENT
Topic
Name
8+5 =