We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi Esteban,
In the BufferedWriter code snippet for chapter 23:
try ( BufferedWriter bw = new BufferedWriter( new FileWriter("/file.txt") ) ) { w.newLine("Writing to the file..."); } catch(IOException e) { /** ... */ }
I done think newLine() takes in any input. You can do w.newLine() to add a new line. To add a string, I think you need to use w.write(String str).
w.write("Writing to the file...");
Could you confirm on this once?
Thanks and Regards, Vishnu
The text was updated successfully, but these errors were encountered:
Fix issue #89
f2fb4a7
Hi Vishnu,
You're right, I've fixed it. Thank you so much!
Sorry, something went wrong.
c89857c
No branches or pull requests
Hi Esteban,
In the BufferedWriter code snippet for chapter 23:
try ( BufferedWriter bw =
new BufferedWriter( new FileWriter("/file.txt") ) ) {
w.newLine("Writing to the file...");
} catch(IOException e) { /** ... */ }
I done think newLine() takes in any input. You can do w.newLine() to add a new line.
To add a string, I think you need to use w.write(String str).
w.write("Writing to the file...");
Could you confirm on this once?
Thanks and Regards,
Vishnu
The text was updated successfully, but these errors were encountered: