Large Files
-
I need to process large files (> 2Gig). The regular C functions "fopen" or MFC CFile operate with a long value offset which limits the file to 2**31. Is their a other option than using low level routines ( _open, _lseek, ...) ? Andre
Try SetFilePointer and/or SetFilePointerEx with the normal Win32 file functions. CFile may have these methods too (or you could probably use the underlying file handle of the CFile object with the SetFilePointer functions) HTH -- Ian Darling "The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
-
I need to process large files (> 2Gig). The regular C functions "fopen" or MFC CFile operate with a long value offset which limits the file to 2**31. Is their a other option than using low level routines ( _open, _lseek, ...) ? Andre
In addition to Ian's suggestion, this article might be of interest.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
I need to process large files (> 2Gig). The regular C functions "fopen" or MFC CFile operate with a long value offset which limits the file to 2**31. Is their a other option than using low level routines ( _open, _lseek, ...) ? Andre
One of the possible ways is to write wapper class similar CFile specially assigned to manipulate with VLF. F.e. - inside, this class could use 64-bit lo-level functions. Thanks for the interesting question. Vitali http://www.creative-case.com
-
In addition to Ian's suggestion, this article might be of interest.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
Thank you for the info. CFile64 needed integration, but did the trick! (Will I ever need CFile128?)
Andre1234 wrote: Will I ever need CFile128? If you do, just check back here and I'll suggest it to you!
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
I need to process large files (> 2Gig). The regular C functions "fopen" or MFC CFile operate with a long value offset which limits the file to 2**31. Is their a other option than using low level routines ( _open, _lseek, ...) ? Andre