How to read an entire file to a string using C#?

What is the quickest way to read a text file into a string variable?

I understand it can be done in several ways, such as read individual bytes and then convert those to string. I was looking for a method with minimal coding.

15 Answers
15

Leave a Comment