java获取系统中的换行符

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qingfengmuzhu1993/article/details/83186181
System.getProperty("line.separator")

window上是\r\n

linux上是\n

unix上是\r

猜你喜欢

转载自blog.csdn.net/qingfengmuzhu1993/article/details/83186181