Well, the ncd files are in binary and not publicly documented. Some guy wrote a C# library that decodes it based on his own personal reverse engineering, so you can always play around with that:
https://github.com/jrstokka/NinjaTraderNCDFilesAlso, your GPT produced a CSV file that appears to be garbage. I don't recommend processing historical data with a GPT engine.
The TXT file, on the other hand, looks like it can be useful.
I grabbed a sample in the middle, which helps one to guess what's going on:
20250518 235959 6920000;21381;21381;21381.5;1
20250518 235959 6920000;21380.75;21380.75;21381.25;1
20250518 235959 9320000;21381.25;21381.25;21381.75;1
20250519 000000 0080000;21381.75;21381.25;21381.75;1
20250519 000000 0080000;21381.75;21381.25;21381.75;1
20250519 000000 0120000;21381.75;21381.25;21381.75;1
No header, by the way, so I'm not sure what the columns are. But it looks like the first three are YYYYMMDD HHMMSS [fractional_seconds], and the very last column is probably volume.
Sort order is oldest to newest.
So if you can confirm the column IDs, the final script would be a piece of cake.