C# loading binary files
问题 Please show me the best/fast methods for: 1) Loading very small binary files into memory. For example icons; 2) Loading/reading very big binary files of size 512Mb+. 3) Your common choice when you do not want to think about size/speed but must do only thing: read all bytes into memory? Thank you!!! P.S. Sorry for maybe trivial question. Please do not close it;) P.S.2. Mirror of analog question for Java; 回答1: 1: For very small files File.ReadAllBytes will be fine. 2: For very big files and