Found the error. Thanks @Andreas
I should remove the .getName() from this line:
FileWriter fileWritter = new FileWriter( file.getName(),true);
Thanks 🙂
solved Why is this code not writing anything to the file
Found the error. Thanks @Andreas
I should remove the .getName() from this line:
FileWriter fileWritter = new FileWriter( file.getName(),true);
Thanks 🙂
solved Why is this code not writing anything to the file