File reading does not kill memory. Of course you don't have to use
TStringList
or
TString
to read file. If looks like you work with text files. You can read the file in one single string. The idea of reading file without
fstream
is ridiculous. This is exactly what you need to do. If you just read, you should use
ifstream
, see
http://www.cplusplus.com/reference/iostream/ifstream/[
^].
—SA