//判断当前系统
Properties prop = System.getProperties();
String os = prop.getProperty("os.name");
if (os != null && os.toLowerCase().indexOf("linux") > -1) {
fileWriter.write(replace+"/n");
} else {
fileWriter.write(replace+"\r\n");
}
判断当前系统
最新推荐文章于 2025-03-16 17:49:02 发布