viewing paste Unknown #17249 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14
 
            using (FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read))
            using (BinaryReader br = new BinaryReader(fs))
            {
                newFile = br.ReadBytes((int)fs.Length);
                crc = CRC32Bytes(newFile);
                fileSizeUncompressed = (UInt32)newFile.Length;
            }
 
to
 
            newFile = File.ReadAllBytes(filename);
            crc = CRC32Bytes(newFile);
            fileSizeUncompressed = (UInt32)newFile.Length;
Viewed 636 times, submitted by mrdiablo.