Sreenath G

Sreenath G

  • NA
  • 233
  • 304k

Issue in reading CVS file in Silverlight

May 17 2011 2:34 AM
 

Hi,

While reading CSV file, in each line first character is missing…. Here is the case..

CSV file data…

Reported Date

Name

Status

4/19/2011 18:52

INC000005134305

Closed

4/19/2011 18:48

INC000005134250

Closed

4/19/2011 18:11

INC000005134058

Closed

 

Code..

  OpenFileDialog Prp_Opendialogue = new OpenFileDialog();

bool? lBlnFile = Prp_Opendialogue.ShowDialog();

 

            if ((bool)lBlnFile)

            {

                FileInfo lObjFileInfo = Prp_Opendialogue.File;

 

            }

 

StreamReader lObjStreamReader = new StreamReader(Prp_Opendialogue.File.OpenRead());

 

                bool lBlnIsColumnRow = true;

 

                while (lObjStreamReader.Read() != null)

                {

                    string lStrLine = lObjStreamReader.ReadLine();

 

}

………….

Here in this lStrline, I am getting  "/19/2011 18:52, INC000005134305, Closed", here you can see 4 is missing. How can I get this…

Any ideas please..

Sreenath


Answers (4)