First, let's see three different ways of extracting data from a file.
string fileText = File.ReadAllText(file);
string[] fileLines = File.ReadAllLines(file);
byte[] fileBytes = File.ReadAllBytes(file);
On the first line, we read all the data in the file as a string.
On the second line, we r...