How's everybody doing today at the ranch? I have a query about IO, since that's what I'm currently practicing.
What's the method that allows me to write out a String to a file without over-writing the contents of the file, but rather place the String in a new line?
Here's some code:
The preceding code over-writes whatever is in the file with the String that's passed as an argument to the println method. I can't find the appropriate method to print out a String as a new Line of text in the text file.
Mr Wong ! Thank you for the replies fella. It seems [according to me] that in order to open a File for appending you must chain the PrintWriter with a FileWriter, just as you described.... I'd to like to know if there's a way to do it with the PrintWriter only, but apparently there's not. So, thank very much Mr. Wong Sir.
If anybody knows another solution please post it... Good luck and prosperity, Sincerely,
Whoa. That's really something Mr. Prime. sometimes I forget just how many things are implicit in Java. Thanks for your post, It's been really useful for a rookie like myself. Keep up the amazing work you do everyday here. May the fortune be with you. Sincerely,