FileOutputStream   fos   =   new   FileOutputStream( "c:\\test.txt "); 
String   nextLine   =   System.getProperty( "line.separator "); 
String   testStr   =   "abcd "+nextLine+ "efgh "+nextLine+ "igkl "
byte[]   c   =   testStr.getBytes(); 
fos.write(c); 
fos.close();

相关文章:

  • 2022-03-03
  • 2022-12-23
  • 2021-11-03
  • 2021-11-05
  • 2021-04-19
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-22
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-12-04
相关资源
相似解决方案