I have a program where I will read in a certain .txt file, such as "financial_data.txt" and I will be doing some sorting with this data.
I want my program to write out the sorted data to an output file and I want the name of the output file to be based off of the input name. For example, since my input file is "financial_data.txt", I want the output file name to be "financial_data_out.txt".
I am having a hard time finding examples online and in my reference manuals that will help me in writing the code necessary to do this.
Any advice pointing me in the direction of what functions I would use to write this code would be greatly appreciated.