In my C code I am given the following string as input:
"c:\tc\bin\a c j k.jpg"
I tried to read the input with scanf but it failed (passing the input both with and without quotation marks) and I am looking for an other solution.
My code is as follows:
char keytext[16],zzz,source[100],dest[100];
short int a;
size_t readcount;
clrscr();
printf("input the key text(max 16 characters):");
scanf("%s",&keytext);
printf("input file name:");
scanf("%s",&source);
/*fgets(source,100,stdin);
namelen=strlen(source);
if(source[namelen-1]=='\n')
source[namelen-1]='\0';*/
printf("output file name:");
scanf("%s",&dest);
C:\tc\bin\a c j k.jpgto be treated as a single string?