摘要: Scanner in=new Scanner(System.in); String content=in.nextLine(); nextLine()方法允许输入一行内容并且有空格。 FileOutputStream,要想写入的内容不把原内容覆盖,则需要把原内容也读取出来,然后全都重新写入。 Inp 阅读全文