作者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
1F:推 FantasyRyu:Try Regular Expression。 03/08 16:41
2F:推 megaman1206:ADO.NET 03/08 23:04
3F:→ CafeKing:自己写就好了 我就写一个了(纯拆字串的方式) 03/10 16:21