november1992
- 120
- 0
I have a question, how can I make an output file that takes the name of the input file and replaces the .txt extension with "_out.txt"?
For example, an input file with the name “new.txt” would result in an output file named new_out.txt”.
my friend told me to use strcat, but that just adds to an existing string.
For example, an input file with the name “new.txt” would result in an output file named new_out.txt”.
my friend told me to use strcat, but that just adds to an existing string.