Im trying to make my program to either open or create a file if it does not exist, in "C://".
printf("Filename: ");
scanf("%s",filename);
FILE *fil;
fil=fopen(filename,"a+");
This code opens or creates a file in the same folder as the program.
What i want is something like this:
printf("Filename: ");
scanf("%s",filename);
FILE *fil;
fil=fopen("C://"+filename,"a+");
How do i write this ?