is there any way to read a csv file into a matrix, so every square in the file will be a cell in the matrix?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are many open source CSV readers, and it’s also easy to code your own.
For a start take look at codeplex.com:
http://kbcsv.codeplex.com/
Or Codeproject tutorials:
http://www.codeproject.com/KB/database/CsvReader.aspx
For sake of completion, here is my own utility class to read a line from a CSV file:
To make the matrix (untested):