3
Hello, I’m having a question about C file manipulation and I’m not getting the answer to that. I am recording an "a" record of type "Student" in a binary file "archiving":
fwrite(&a, sizeof(Aluno), 1, arquivoBinario);
I know that fução returns the number of elements that were written successfully in the file. What I’d like to know is in what position in the file that record was written.
I need this position to make a quick access to this record that was saved in this file without having to search for all sequentially.
I’m sorry for any error in posting and please correct me, it’s my first question here.
Thank you very much. It seems very simple I think I was not knowing how to look for the solution but solved my problem perfectly. Vlw himself.
– Raul