Augusto Padula

Augusto Padula

  • NA
  • 1
  • 7.8k

External File and a Vector

Oct 7 2010 6:42 PM
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)