Hey Guys, I am really having a hard time. Because I am making a project and the only part left for me is to save the information of the lists in a FILE
Code:
#include <stdio.h>#include <stdlib.h>
#include <string.h>
typedef struct consulta{
float peso;
char serialvacuna[25]; //Serial of the Vacune
char tipovacuna[25]; //Type of Vacune
char diagnostico[250]; //Diagnostic
char observaciones[250]; //Observations
char fecha[10]; //Date
struct consulta *sig; //Next
}NODOCONSULTA;
typedef struct mascota{
char nombre[20]; //Name
char animal[20];
char nacimiento[10]; //Date of Birth
char sexo[10]; //Sex
char raza[20]; //Race
char color[20]; //Color
NODOCONSULTA *historialmedico; //Medical History
struct mascota *sig; //Next
}NODOMASCOTA;
typedef struct cliente{
char nombre[50]; //Name
char direccion[100]; //Address
int cedula; //ID Number
char telefono[15]; //Phone Number
NODOMASCOTA *listamascotas; //Pets
struct cliente *sig; //Next
}NODOCLIENTE;
What I need is help or orientation to save all the info in one or more Files.
Thanks