There are a lot of different ways to read and write files (text files, not binary) in C#.
I just need something that is easy and uses the least amount of code, because I am going to be working with files a lot in my project. I only need something for string
since all I need is to read and write string
s.
Best Answer
Use File.ReadAllText and File.WriteAllText.
MSDN example excerpt: