From your question itβs not entirely clear why you need to load the entire file into memory before you start creating a dataset in memory ... Do you combine the two questions? (i.e. because you need to create a dataset in memory, which, in your opinion, you first need to completely load the source data into memory? Or is there some preliminary preprocessing of the source file, which is possible only with the entire file loaded into memory (this is unlikely, and even if it is, there is no need for a navigation stream object such as TFileStream).
But I think the answer you are looking for is right there in the question ....
If you download this file in order to analyze it and fill in / initialize an additional data structure (data set) for further processing, then using the existing high-level data structure is unnecessary and potentially expensive (in terms of time)).
Use the lowest-level access tools that provide the capabilities you need.
In this case, TFileStream is likely to provide a better balance of usability.
Deltics
source share