how can i put the filename get in scanf("%s", &filename); in fopen("filename.txt", "a");
main()
{
FILE *file;
.
.
.
printf("type the filename (.txt): ");
scanf("%s", &filename);
file = fopen("filename.txt", "a");
fprintf(file, "...");
fclose(file);
.
.
.
}