若怯若愚

大勇若怯,大智若愚

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

使用換行符前,使用當前操作系統的換行

1 // 讀取換行符
2 System.getProperty("line.separator");

換行與路徑

1 line.separator(windows:"\r\n";unix:"\n"); 
2 file.separator(windows:"\";unix:"/"); 
3 path.separator(windows:";";unix:":");

 

posted on 2009-04-10 10:34  考巴熊  阅读(310)  评论(0编辑  收藏  举报