How can this be realized?

0
0

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?

  • You must to post comments
0
0

You can find a sample “UploadFiles” either here on our website:

https://wisej.com/examples/

Or at github:

https://github.com/iceteagroup/wisej-examples

Best regards
Frank

  • You must to post comments
0
0

But can i upload file first, how can i do this with your framework


 

  • You must to post comments
0
0

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

  • You must to post comments
0
0

I need to upload a file, and count lines from it to a variable, how can I do this?

  • You must to post comments
0
0

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.

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.