开发者

adding new line in exported csv file?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜