I tried to store several data an cant achieve it:
#include <iostream>
#include <string.h>
#include <stdlib.h.>
#include <stdio.h>
#include "estructura.h"
void guardar_cliente(cliente x)
{
FILE*f;
f= fopen("data.txt", "w");
fwrite(&x, sizeof(x), 1, f);
fclose(f);
}
I dont know whats wrong im using another cpp file and a header file as you might have noticed, but the text file doesnt appear, whats wrong with this code pleeease help!!! im using vista btw