這裏是文件需要扭轉的文件,但最後一行沒有回車,反向列表所以第一個項目有2條線在它
303620.43,6187793.62
303663.61,6187757.08
303652.22,6187702.51
303580.10,6187685.43
303551.63,6187737.15
303574.88,6187775.11
303610.94,6187773.69
反轉時,我得到
303610.94,6187773.69303574.88,6187775.11
303551.63,6187737.15
303580.10,6187685.43
303652.22,6187702.51
303663.61,6187757.08
303620.43,6187793.62
我如何確保倒數的最後一行有'\n'
?
你能告訴我們你的代碼嗎? – 2011-05-25 11:53:27