Secondo me ti conviene aprire direttamente il file in modalità lettura-scrittura (fopen(NomeFile, "rw")).