输出文件 - BufferedWriter [英] output file - BufferedWriter

查看:61
本文介绍了输出文件 - BufferedWriter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天!

请有人告诉我为什么我的程序生成相同的输出文件内容?他们应该有不同的内容。

我的代码一定是错的。帮我解决一下,非常感谢你...

Good day!
Kindly please someone tells me why my program generates same content of output file? They''re supposed to have different contents.
Must be something wrong about my codes..help me to figure it out, Thank you very much...

展开 | 选择 | < span class =codeLinkonclick =WordWrap(this);> Wrap | 行号

推荐答案


美好的一天!

请有人请告诉我为什么我的程序生成相同的输出文件内容?他们应该有不同的内容。

我的代码一定是错的。帮我解决一下,非常感谢你...
Good day!
Kindly please someone tells me why my program generates same content of output file? They''re supposed to have different contents.
Must be something wrong about my codes..help me to figure it out, Thank you very much...
展开 | 选择 | < span class =codeLinkonclick =WordWrap(this);> Wrap | 行号



您在代码中做了什么使您的输出与众不同?
What have you done in your code to make your output different?



我把output.close();外面尝试..

仍然相同...

I put output.close(); outside try..
still the same...



我把output.close();外面尝试..

仍然相同...
I put output.close(); outside try..
still the same...



Shana,你使用for循环输出到文件和部分您发布的代码没有任何暗示输出应该是不同的。

Shana, you are using a for loop to output to the file and the part of code you''ve posted has nothing to suggest that the output should be different.


这篇关于输出文件 - BufferedWriter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆