eric MC
eric MC

Reputation: 766

Buffered Writer Java Limit / Issues

I have a buffered writer that is writing to a text file. For some reason the writer stops writing a long string about half way through. Are there any known issues with using the buffered Writer in java?

Upvotes: 1

Views: 1876

Answers (2)

Somnath Kadam
Somnath Kadam

Reputation: 6357

Before writing large text into file, use obj_BufferedWriter.flush().

Upvotes: 2

Daniel Cisek
Daniel Cisek

Reputation: 931

Are you closing the writer?

writer.close();

Upvotes: 6

Related Questions