Adjunto parte final del código
switch(OPCION)
{
case 1:
{
Guardar.open("Registros.txt",ios::out); //Abrir el archivo, crea o reemplaza el archivo.
system("cls");
printf("Ingrese Nombre(s):\n"); scanf("\t %s",&NOMBRE);
printf("Ingrese Apellido(s):\n"); scanf("\t %s",&APELLIDO);
printf("Ingrese Edad:\n"); scanf("\t%i",&EDAD);
printf("Ingrese DPI:\n"); scanf("\t%i",&DPI);
printf("Ingrese No. de Telefono:\n"); scanf("\t%i",&TEL);
fprintf Guardar("%s%s%i%i%i", NOMBRE, APELLIDO, EDAD, DPI, TEL);
break;
ofstream Temp;
}
}
return 0;
}