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)
could anyone here please suggest me something that would be faster? Would a loop maybe faster? I know it can be faster, but how?Code:StreamReader DataFile = new StreamReader( (System.IO.Stream)File.OpenRead("somefile.any"),System.Text.Encoding.ASCII); string Checksum = DataFile.ReadToEnd().GetHashCode().ToString();
Tank you very much in advance!





Reply With Quote