How to handle above 4GB file?

Posted on 2004-11-24
Last Modified: 2013-11-20
How to generate above 4 gb file. In NFTS partion it is possible to generate above 4 gb file, but the seek operation execeeds 4 gb it prompts the application error. How to handle this operations?.

Is there any readymade object class  to be used for seek & write operation.
Question by:rpatna
    LVL 13

    Accepted Solution

    Did you had a look at _lseeki64?
    An i64 should be sufficiently large even for 4GB+ files.
    LVL 16

    Expert Comment

    You can also use SetFilePointer or SetFilePointerEx
    LVL 1

    Expert Comment

    From my own experience I can say that it would be best to write a class/package/unit to handle the 64-bit file access. Microsoft's 64-bit API contains a wealth of functions, which use a trickier syntax than their 32-bit counterparts, but they need to be used consistently, otherwise very hard-to-trace errors can occur.


    Author Comment

    i want to delete this question, if nobody have any objections.
    LVL 13

    Expert Comment

    Without refund? no problem!
    Otherwise react to comments before.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
    If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now