View Single Post
  #5  
Old 15-10-2023, 09:36
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,077
Thanks: 1,828
Thanked 2,311 Times in 789 Posts
Cesar82 is on a distinguished road
@BLACKFIRE69, Thank you very much for the updates.
Maybe you can include an additional function...
function FXPckrAddFileList(const FileList: WideString): Boolean;

Usage like this:
Code:
StrList := TStringList.Create;
try
    StrList.LoadFromFile(ExpandConatant('{src}\FileList.txt'));
    FXPckrAddFileList(StrList.Text);
finally
   StrList.Free;
end;
You could also store files with a folder structure inside Data.dat.
To do this, use the character "|" as an option to inform the destination path in the internal structure of Data.dat. If "|" does not exist, add as a file without a subfolder in the internal structure of the items.
Code:
FXPckrAddFile('C:\my_test\filetest.txt|my_test\file_name.txt');
This would allow using files with the same names for different cases.
Thanks!
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
hitman797 (15-10-2023)