I need to read the file line by line (each line contains an integer number), parse it from line to number and then, most importantly, ADD ELEMENT to the array!
I leave a piece of code
using (StreamReader sr = new StreamReader (@"input.txt", System.Text.Encoding.Default))
{
string line;
while ((line = sr.ReadLine ())! = null)
{
//TODO: Add the element somehow
}
}
P.S. I apologize in advance for my English). Thanks to all