I'm trying to write a program that will ask the user for a file which the wish to copy the contents of and then copy it to another file whilst stripping out the spaces.
but initially i cant seem to be able to get it to copy at all, my window crashes on entering the output file name. can anyone suggest where im going wrong?
/* Declare Variables */
/* Ask user to input file name(including extension)*/
printf("Please enter the file name you want to copy: ");
/* Ask user to output file name(including extension)*/
printf("Please enter the file name you want to output: ");
/* Opens file on a read txt only basis */
/* Opens file on a write basis */
/* Copies the string into a buffer named 'copy' */
/* A declaration of success */
printf("File %s has been successfully copied to file %s", inputFile, outputFile);