Solved

I need to use TFileStream with files larger than 2 GB

Posted on 2002-04-27
3
279 Views
Last Modified: 2010-08-05
I have been using TFileStream objects in my application, but have got problems whith files greater than 2 GBytes as Size, Seek etc use LongInt !

Can anyone think of a way around this. I suppose all I really need is a way of determining the size and setting the possition as an Int64!

Thanks for any help,
  Dave Taylor.
(This is my first question to ExpertsExchange)
0
Comment
Question by:DaveTaylor
3 Comments
 
LVL 14

Expert Comment

by:sudhakar_koundinya
Comment Utility
where u got that problem b'coz reading 2gb files is quite interesing and can not be done with classes, methods provided by any language

hope u may get good answer
Good Luck
Sudhakar
0
 
LVL 12

Accepted Solution

by:
Lee_Nover earned 50 total points
Comment Utility
you should check out : gpHugeFile

GpHugeFile / TGpHugeFileStream v.3.07a  FWS 49 Kb 17.12.01  
By Primoz Gabrijelcic. Encapsulation of Windows file-handling routines that allows work with >2GB files. Included is support for non-buffered access (FILE_FLAG_NO_BUFFERING) and buffering for sequentially accessed files. TGpHugeFile is interface to 64-bit file functions with some added functionality. TGpHugeFileStream is descendant of TStream that wraps TGpHugeFile.
 
Fully functional
Source: Included
Download: D5 D6  


checkout torry's wp : http://www.torry.net/filedrvother.htm
0
 

Author Comment

by:DaveTaylor
Comment Utility
Many thanks for such a prompt answer.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

19 Experts available now in Live!

Get 1:1 Help Now