I have the following program that will send (output) information to a text file, but now I want to read (input) from the text file. Any suggestions would be greatly appreci
Try this:
if(result == DialogResult.OK && fileName != null) { try { var fileText=File.ReadAllText(fileName); } catch(Exception ex) { //Handle exception here } }
It will read all the data from the selected file into the fileText variable.
fileText