开发者

adding new line in exported csv file?

开发者 https://www.devze.com 2023-02-12 03:19 出处:网络
i exporting data into csv file by using poi library in java. im facing a problem, \\n in my javacode is not开发者_如何转开发 taking in the csv file .it gives entire list of data in one line,

i exporting data into csv file by using poi library in java.

im facing a problem, \n in my javacode is not开发者_如何转开发 taking in the csv file .it gives entire list of data in one line,

Also how can i give space from my java.


Some editors like notepad expect MS-DOS new lines which are \r\n and will treat files with just \n as being entirely on one line.

However most editors incl excel will accept the UNIX style \n. You can use the System.getProperty("line.seperator") or the %n in printf to use the platform local newline.

0

精彩评论

暂无评论...
验证码 换一张
取 消