I have user defined file name! Therefore, i wanted to use the input name for my export file too.
Here below my reading and writing function
Here fname is defined by user! Example when the user define the input name as 'NAME' so the program read NAME.txt, this works well,
But when i am trying to use the input name 'NAME' for my export file, i got i problem with strcat,
For example, I want like 'NAME_out.txt', but now i am getting 'NAME.txt_out.txt' even if i use NAME further, it will add on the previous one, like NAME.txt_out.txt_out_txt and so on