Page 1 of 1
Concatenation of CSDBE Files
Posted: November 4th, 2022, 11:07 pm
by Cbms123
Re: Concatenation of CSDBE Files
Posted: November 7th, 2022, 7:44 am
by Gregory Martin
Your best option is to either add the password to the files listed in a PFF:
https://www.csprousers.org/help/CSConca ... nates.html
Or to do this in logic. For example, this would concatenate a single file:
fileconcat(DICT_NAME, "out.csdb", "input.csdbe|password=1234");
If you had a whole directory of files, you could do something like this:
// get a list of files from the Input Data folder
List string input_files;
dirlist(input_files, "Input Data", filter := "*.csdbe");
// add the password
do numeric ctr = 1 while ctr <= input_files.length()
input_files(ctr) = input_files(ctr) + "|password=1234";
enddo;
// concatenate
fileconcat(DICT_NAME, "out.csdb", input_files);