loading file in memory mfc

How shall I read a disk file without loading the whole file in the memory. I am trying to read a big disk file without over burdening the user memory space .
I would like to read it in chunks. Any ideas
Regards
Mike
[228 byte] By [skapta] at [2007-11-20 8:46:45]
# 1 Re: loading file in memory mfc
Please lookup memory mapped files ( http://msdn2.microsoft.com/en-us/library/ms810613.aspx).
Related APIs:
MapViewOfFileEx
kirants at 2007-11-9 13:30:46 >
# 2 Re: loading file in memory mfc
This is about 1 Gb file to be opened for read and extracting information within a program. How would you create a class to implement this mmf mechanism
Thanks
skapta at 2007-11-9 13:31:46 >