Hello everyone! I'm trying to make one complicated (for my knowledge) C program and need some help with one function. I do some stuff with a text file and I have to save the results of it in an output file which has the same name as the input file (which is not a big deal) but it has to have a ".cnt" extension. I'm not very good at programming and though I'm familiar with working with text files I can't figure out how to do this or the algorithm that does it.
Could anyone give me some advice on this?
Thank you preliminary!