SyntaxFix
Write A Post
Hire A Developer
Questions
Pass the File object to the constructor PrintWriter(File file):
PrintWriter(File file)
PrintWriter printWriter = new PrintWriter(file);