void main is undefined - use int main instead!
Indent properly. Here's how it should look.
Don't use scanf to read a string. Read my signature. Read it carefully. I would rather see that scanf gone the next time you post sample code, please.
To save a string to file, you can use fputs. You can read a string with fgets.
FILE *fp; /*Declare file pointer*/
printf("Enter a name?");
fp=fopen("test.txt","w+r"); /*Open file for writing*/
fprintf(fp,"%d", me); /*Print number to file*/
fclose(fp); /*Close file*/