这是什么意思啊?我要输出到文本中
不是输出到JBUILDER 7 的测试环境中!!!
System.getProperty("line.separator")这段代码没看懂

解决方案 »

  1.   

    PrintStream pos = new PrintStream(new FileOutputStream("c:\\aa.txt"));
    pos.println("第一行");
    pos.println("第二行");
    ...这种方式简单吧
      

  2.   

    用\r\n试试吧!
    out.write('\r\n');
      

  3.   

    System.getProperty("line.separator")就是回车换行,这么用:String str="first"+System.getProperty("line.separator")+"second";然后你把str写到文件中,就会是:
    first
    second