Merge two report files to get one file to display

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
Boni
Posts: 75
Joined: February 25th, 2020, 5:53 am

Merge two report files to get one file to display

Post by Boni »

Dear All !!!
Hello everyone! I design a reporting application of two text files. I would like my application instantly merge the two files produced to display a single file automatically.
I'm facing on CSPro 7.4 the error message 14012 ("TEXT FILE IS NOT ENCODED IN A FORMAT SUPPORTED BY CSPRO".
Your help please !!!
Sincerely yours !
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Merge two report files to get one file to display

Post by Gregory Martin »

You can use the fileconcat function:
fileconcat("combined_report.txt", "part1.txt", "part2.txt");
Boni
Posts: 75
Joined: February 25th, 2020, 5:53 am

Re: Merge two report files to get one file to display

Post by Boni »

The problem is solved, I had forgotten to call the "Close function to close my report file <"Close(Report_file)"> otherwise there was no error on logic.
Thank you Dear Gregory!!
Sincerely yours !
Post Reply