1
Answer

External File and a Vector

Augusto Padula

Augusto Padula

14y
7.5k
1
How do I get (read) the values of an external file. Txt and apply a vector? line by line.


Example:

                StreamReader sena = new StreamReader("C:\\paste\\text.txt");

                string linha = "";

                for (n = 0; n < quant; n++)
                {

                    seq[n] = Convert.ToSingle(linha);
                }

Thanks!


Answers (1)
0
Gomathi Palaniswamy

Gomathi Palaniswamy

NA 3.8k 1.5m 14y
Hi friend,

c-sharpcorner having article to read the file in below link

http://www.c-sharpcorner.com/UploadFile/psingh/ReadafileusingCSharp12032005000755AM/ReadafileusingCSharp.aspx