Both * nix and Windows have extensions for I / O procedures that relate to a file size that will support sizes larger than 2 GB or 4 GB. Naturally, the main file system must also support a large file. On Windows NTFS does, but FAT, for example, does not work. This is commonly known as "large file support."
The two procedures that are most important for these purposes are fseek()and ftell()so that you can make random access to the entire file. Otherwise, ordinary fopen()and fread()friends can sequentially access any file size if the underlying OS and the stdio implementation support large files.
source
share