RichText LoadFile/SaveFile function for normal text

Mar 16 2020 8:33 AM
I know that LoadFile works for RichText, but is there an alternative, if i want to use a simmilar function for normal text?
 
Thank you in advance
  1. private void button Open_Click(object sender, EventArgs e)  
  2. {  
  3.    if (openFileDialogNotes.ShowDialog()==DialogResult.OK)  
  4.       {  
  5.          textBoxMain.LoadFile(openFileDialogNotes.FileName);  
  6.       }  
  7. }  
P.S. is there an alternative for the SaveFile funtion too?

Answers (2)