try
{
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
string[] login = File.ReadAllLines(openFileDialog1.FileName);
}
}
catch (NullReferenceException ex)
{
// Log(“ok!”);
}
How can I read all the lines from the loaded file, or some information about it?
Hi,
Can you describe the problem you are facing? Does the above code raise an exception? What exception?
It would be event better if you attach a small example.
I need to upload a file, and count lines from it to a variable, how can I do this?
Hi,
there are many ways of counting number of lines in C#.
Find a related discussion here:
https://stackoverflow.com/questions/496663/c-sharp-how-do-i-count-lines-in-a-textfile
Best regards
Frank
But can i upload file first, how can i do this with your framework
You can find a sample “UploadFiles” either here on our website:
Or at github:
https://github.com/iceteagroup/wisej-examples
Best regards
Frank
Please login first to submit.