Assuming that I want to read sequential data from some large files which approach is better (assuming I don't want to use to much memory) - Reading to a buffer (using ReadFile) or Mapping the relevent section of the file (using MapViewOfFile) ?
If you are planning to read all at once, use ReadFile on file created with CreateFile with the FILE_FLAG_SEQUENTIAL_SCAN for maximum performance and efficiency.
file mappings are limited (at least under Win95) to 1 GByte. Mapping larger files fails.
beaster: and if you watched recent posts youd know why ;)