FileOutputStream does not create file 我跑在eclipse下面的代码,这是我从这个问题采取了完全重复。没有文件被创建。 BufferedOutputStream dob = null;
try {
File file = new File("C:\\Users\\claudio\\ccc.as");
System.out.pr
我是新来的java和学习,因为我现在正在研究数组,我似乎不知道我在做什么错这里。我不认为它正在以正确的方式提取数据,this program is suppose to read data from a text file, and ask the user for additional inputs, then display a report.我似乎有捐赠输出位的问题,因为我还没有得到它的工作
我试图让我的游戏将分数保存到一个文本文件中,我稍后想要读取它。但是,我似乎无法让我的分数实际存储在文件中? 此外,我最终希望能够只存储前10位的分数,因此如果它高于文件中的分数,则覆盖分数?什么是最好的方式去做这件事? 谢谢! public void saveGame(Integer score){
try {
OutputStreamWriter osw = new O