As the title suggests?
Is this along the right lines?Code:printf("Please enter a filename for the output text file");scanf("%s", &output); FILE *FW; FW=fopen(C:\users\john\\desktop\%s.text, output, "w");
Thanks
As the title suggests?
Is this along the right lines?Code:printf("Please enter a filename for the output text file");scanf("%s", &output); FILE *FW; FW=fopen(C:\users\john\\desktop\%s.text, output, "w");
Thanks
No it's along these lines:
If the output entered doesn't contain a path it use your current working directory.Code:FW=fopen(output, "w");
Thought as much. Thanks
If i want it to output a textfile rather than just a file which needs to be manually open with notepad is there a way?