任何人都可以幫助我指出正確的方向嗎?先謝謝你。使用ASP.NET將逗號分隔的CSV文件處理爲多個文件
我正在尋找一個小應用程序,它將通過將數據行輸出到多個csv文件中,並根據數組中某列的不同值列表(比如Header1)來處理一個csv文件,但是,我不會不知道從哪裏開始。供參考:頭一中的列表將會一直改變。
我已經能夠讀取該文件與此代碼的數組:
[Read From Comma-Delimited Text Files in Visual Basic][1]
現在我要處理基於第一列中的數據。例如;
輸入:
input.csv
"Header1","Header2","Header3","Header4"
"apple","pie","soda","beer"
"apple","cake","milk","wine"
"pear","pie","soda","beer"
"pear","pie","soda","beer"
"orange","pie","soda","beer"
"orange","pie","soda","beer"
OUTPUT:
output1.csv
"Header1","Header2","Header3","Header4"
"apple","pie","soda","beer"
"apple","cake","milk","wine"
output2.csv
"Header1","Header2","Header3","Header4"
"pear","pie","soda","beer"
"pear","pie","soda","beer"
output2.csv
"Header1","Header2","Header3","Header4"
"orange","pie","soda","beer"
"orange","pie","soda","beer"
您的鏈接已損壞。 –