Hello everyone,
I'm trying to get the the Hashcode of a file to look whether it corrupted or not. The problem is, that the file reading method that i use is atrociously slow (especially with files over 50mb)

Code:
StreamReader DataFile = new StreamReader(
(System.IO.Stream)File.OpenRead("somefile.any"),System.Text.Encoding.ASCII);

string Checksum = DataFile.ReadToEnd().GetHashCode().ToString();
could anyone here please suggest me something that would be faster? Would a loop maybe faster? I know it can be faster, but how?

Tank you very much in advance!