Guest_imported
New member
- Jan 1, 1970
- 0
Its simple yet, deosn't work:
FILE *dfd;
char m[1000];
char xyzst [100];
dfd=fopen("dtance","r"
fgets(m,1000,dfd);
strcat(xyzst,"playprompt"
printf("%s\nl",xyzst);
generates the following '123329playprompt ' instead of 'playprompt123329'.
The file dtance contains on one line '123329'.
FILE *dfd;
char m[1000];
char xyzst [100];
dfd=fopen("dtance","r"
fgets(m,1000,dfd);
strcat(xyzst,"playprompt"
printf("%s\nl",xyzst);
generates the following '123329playprompt ' instead of 'playprompt123329'.
The file dtance contains on one line '123329'.