I've been searching this forum for my problem, but couldn't find any related topics, maybe I overlooked them. Anyway, I would like to combine 2 strings into 1.
I've got an array full of filenames without the txt extention. I need the names without extention as well, so what I wanted to do is something like this:
So how can I make that second line work?Code:char* filename_array[84] = "filename1","filename2", etc... char* filename1 = filename_array[0]".txt"; FILE* file = fopen(filename1,"r");