I have this structure:
struct televisao {
int id_guit;
int precodia;
int preco;
int estado;
char nome[20];
};
I wanted to ask the user to insert data from this structure and save it to a .txt file, how do I get it? The part of verifying that the file exists can do with itself.