hi experts i have a csv file which look like this
country,date,code,time
mexico,3/13/2008,92,00:00:00
mexico2,3/13/2008,5214,00:00:00
mexico2,3/13/2008,5214,00:00:00
i am reading the file like this
StreamReader sr = new StreamReader(@"C:\Documents and Settings\jitendra\Desktop\RIC_SELL_080318.csv");
string strline="";
string[]value=null;
while(!sr.EndOfStream)
{
strline=sr.ReadLine();
value=strline.Split(',');
if(values.Lenght >3 )
{
Console.WriteLine(values[2].ToString());
}
}
so on doing this i get the code coloumn data but it is not giving the complete records from the file , and what i want is to read this file using array and only want to get the data of code coloumn and sort it in descending order. so can you plz help me plz its urgent thanking you in advance....