Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading files of any size in Delphi

Status
Not open for further replies.

topcat01

Programmer
Jul 10, 2003
83
GB
What would be the best method to read files of any file size in Delphi? I know of a 2gb limitation in some i/o functions in Delphi, does this apply to all functions? Is the use of TFileStream the best option?
 
A little more information would be helpful.... do you want to read the whole file into memory at once? Does it NEED to all be in memory at once? .. or .. is it a record oriented file? .. or is it a variable-length-delimeted file .. or ..
???? When you say "...any size", is that record size, filesize?

Regards,
JGS
 
Hi

It would be an untyped file, read in blocks, it does not need to be in memory all at once. By "any size" i mean the filesize in total.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top