perché dici che aprire il file in "r+" non è ottimale?
che problemi ti ha dato?