if (openFileDialog1.ShowDialog() == DialogResult.OK)
string login = File.ReadAllLines(openFileDialog1.FileName);
catch (NullReferenceException ex)
How can I read all the lines from the loaded file, or some information about it?
there are many ways of counting number of lines in C#.
Find a related discussion here:
Please login first to submit.