edit files in java code example
Example: edit a txt file using java
FileWriter fw = new FileWriter ("file.txt", true);
PrintWriter pw = new PrintWriter (fw);
/*
filewriter creates the file that printwriter can edit.
*/
FileWriter fw = new FileWriter ("file.txt", true);
PrintWriter pw = new PrintWriter (fw);
/*
filewriter creates the file that printwriter can edit.
*/