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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Are you closing the writer?
writer.close();
回答2:
Before writing large text into file, use obj_BufferedWriter.flush().