I've been running Delphi XE6 and am trying to put read-only INI files into the EXE file.
That I have already solved. Also loading the files is working fine into TMemo.
I have defined the following function loading the pure TXT INI file from resource into TMemo:
procedure LoadTXTfromResource(const ResourceName: string; OutMemo: TMemo);
ResourceStream := TResourceStream.Create(HInstance, ResourceName, RT_RCDATA);
It is working flawlessly.
Now, what I need, is to re-write the procedure to load the aforementioned text file into TMemIniFile.
I've been trying various things, but I can't seem to be able to do that. Any hints?