I would like to know if it's possible to write data at the beginning of a file using frwite
. Let me be more precise, I open a file using fopen
then I write some data to it with write. Just before closing the file I like to write a little summary of what is inside the file. I suppose that the best place to put this summary is at the beginning of the file. So when i open the file later, I can read first the summary and then the data.
actually the place where I put the summary doesn't matter as long as I can read it first when I open the file.