I use OpenGL's mouse display to rotate the 3D model, after that I want to make the updates to my wavefront(.obj) file so that the next time it will directly show the view that I want. Is there any idea about how to update the .obj file?
It might be easier to store the current ModelViewProjection matrix, then load that matrix when you restart your program. This would move your object back to the location you want.
Otherwise, you multiply each point of your object by the ModelViewProjection matrix and store it.