fprintf(file,"%s \n",buffer);
gets(buffer);
}while((strcmp(buffer,":exit")));
fclose(file);
break;
case 2:
printf("Enter file name: ");
scanf("%s",name);
FILE* f = fopen(name,"r");
printf("%s",buffer);
while(!feof(f))
{
printf("%s",buffer);
fgets(buffer,255,f);
}
fclose(f);
break;
case 3:
exit = 0;
break;
default:
printf("Invalalid coomand");
}
}
}