hi...

i'm trying to save data from a double linked list into a .bin file and then load the data from the same file to the dynamic memory whenever i want.

Code:
typedef struct marcarConsul noCons, *pnoCons;
struct marcarConsul
{
	int idPaciente;
	int idMedico;
	int especialidade;
	int horaConsulta;
	int faixaEtaria;
	int duracao;

	int tipoConsulta;
	char desc[100];

	Data dataConsul;
	Hora horaMarcacao;

	pnoCons prox;
	pnoCons prev;
};
how do i do that?