Quantcast
Channel: Leer CSV
Viewing all articles
Browse latest Browse all 13

Leer CSV

$
0
0

Buenos Días

Chicos tengo un problema al leer un csv me obtiene mal los datos

 

Yo solo necesito el dato dentro de la comillas es decir por ejemplo el 0323506A, sin las comillas ni la barra, que le falta  ami código

  var parsedData = new List<string[]>();
            using (var sr = new StreamReader(ruta))
            {
                string line;
                while ((line = sr.ReadLine()) != null)
                {
                    // string[] row = SplitCSV(line).ToArray();
                    string[] row = line.Split(new char[] { ',',  });
                    // string[] row = line.Split(new char[] { '\r\n' ,  });
                   // string[] row = line.Split(new[] { '\r' },StringSplitOptions.None);
                   // string[] row = line.Split(Environment.NewLine.ToCharArray());
              //      string[] row = Regex.Split(line, "[\r\n]+");

                    parsedData.Add(row);

                }
            }

saludos


ruben


Viewing all articles
Browse latest Browse all 13

Latest Images

Vimeo 10.7.0 by Vimeo.com, Inc.

Vimeo 10.7.0 by Vimeo.com, Inc.

HANGAD

HANGAD

MAKAKAALAM

MAKAKAALAM

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Vimeo 10.6.2 by Vimeo.com, Inc.

Vimeo 10.6.2 by Vimeo.com, Inc.

Vimeo 10.6.1 by Vimeo.com, Inc.

Vimeo 10.6.1 by Vimeo.com, Inc.





Latest Images

Vimeo 10.7.0 by Vimeo.com, Inc.

Vimeo 10.7.0 by Vimeo.com, Inc.

HANGAD

HANGAD

MAKAKAALAM

MAKAKAALAM

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC

Vimeo 10.6.1 by Vimeo.com, Inc.

Vimeo 10.6.1 by Vimeo.com, Inc.