Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
5 answers
9k views

Java writing a list of strings to a file, but the file is empty

I have found this question in other languages, but have yet to find a solution to this issue in a java application. I have a large .txt file with millions of records. Each record is /n delimited. ...
Jeremy's user avatar
  • 336
4 votes
2 answers
21k views

Using BufferedWriter to write to a string [duplicate]

I am trying to use a BufferedWriter to switch between writing to a File and writing to a String, but I have never used a BufferedWriter to write to anything but a file. Take this compilable code: ...
ryvantage's user avatar
  • 13.5k