Write a program to overwrite string on a file

#include<stdio.h>
#include<conio.h>
int main()
{
FILE *fp;
char word[100];
printf(“Enter string without Space”);
scanf(“%s”,&word);
fp= fopen(“D:\\info.txt”,”a”);
fprintf(fp,”%s”,word);
fclose(fp);
getche();
return 0;
}