作者imio24 (imio)
看板C_Sharp
標題[問題] parse a CSV file by C#
時間Sun Mar 8 03:45:43 2009
hey everyone, how can i read and parse the value of cell from a CSV file
by visual 2005 column by column if cells contains comma(,), space( ) or double quot("").
i tried to use, readline() and split(',') a string but if cells contain comma
then it spilts into 2 object which is not what i want.btw the precondition is
that i cannt change anything about imported CSV file. thank you everyone
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 24.191.101.238
推 FantasyRyu:Try Regular Expression。 03/08 16:41
推 megaman1206:ADO.NET 03/08 23:04
→ CafeKing:自己寫就好了 我就寫一個了(純拆字串的方式) 03/10 16:21