Answered by:
reading CSV

Question
-
Guys
I have a CSV file in my assets folder which contains data as follows
0001,Harris,A&H,C22
0002,Harris,A&H,C23
0003,Harris,A&H,C24
0004,Harris,A&H,C25etc....
I want to be able to search the data for the row that has "0004" in it and the copy that row into a string
Any ideas or know of any easy tutorials I can follow?
Mark
Monday, November 18, 2013 12:06 AM
Answers
-
Hi Mark,
Checkout the sample from code center for helping read the CSV file to your app: http://code.msdn.microsoft.com/windowsapps/CSV-Parser-for-WinRT-42e0f4d0
After that you could do a search for the result by Linq.
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- Marked as answer by Jamles HezModerator Friday, November 22, 2013 9:33 AM
Monday, November 18, 2013 1:21 AMModerator -
Thanks for your help
I found the example far too complicated for a newbie like me
I have managed to achieve it by using the file access sample and read from the csv file by using storagefile and readlinesasync
Mark
- Marked as answer by Jamles HezModerator Friday, November 22, 2013 9:33 AM
Tuesday, November 19, 2013 6:28 AM
All replies
-
Hi Mark,
Checkout the sample from code center for helping read the CSV file to your app: http://code.msdn.microsoft.com/windowsapps/CSV-Parser-for-WinRT-42e0f4d0
After that you could do a search for the result by Linq.
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- Marked as answer by Jamles HezModerator Friday, November 22, 2013 9:33 AM
Monday, November 18, 2013 1:21 AMModerator -
Thanks for your help
I found the example far too complicated for a newbie like me
I have managed to achieve it by using the file access sample and read from the csv file by using storagefile and readlinesasync
Mark
- Marked as answer by Jamles HezModerator Friday, November 22, 2013 9:33 AM
Tuesday, November 19, 2013 6:28 AM