Interaction with files is a necessary skill with any programming language. Luckily, with the .NET Framework, we have many reading options provided to us through the
System.IO namespace. There are almost too many options, and for .NET coding newbies, it may be confusing which option to choose.
In this post, we’ll explore the many ways we can read a file and also benchmark each approach to understand what exactly it is doing.