Read a csv file and put the information into a .txt file
<p>I am trying to read a csv file that contains multiple lines and from this file I want to take only several data and put them into a txt file. For example:
I have a csv file with 5 columns but I need to put in my txt file only the first 3 columns, or only the second column from the csv.
I was thinking that an idea is to put every line into a string array and separate the values by comma, and after that, take only the values that i need, but i don't know how to do that.</p>
