So you just expect it to be that easy then, eh?
Originally Posted by lenxe
You can't use variables in C "string literals", unfortunately.
Having come from "other languages" myself I thot this a bit ridiculous at first, but you will have to construct a string if you want to do anything beyond the literal, eg. "F:\\Programming_output\\myfile.txt" is fine. You have at least two choices on how to do this:
testFILE = fopen ("F:\\Programming_output\\"+teststring+".txt","w");
Then you can use testFILE = fopen (fullname,"w");