in reply to Re^3: I can't find my mistake here!!!
in thread I can't find my mistake here!!!

Maybe you are overwriting your file twice in your program.

I think you will have to show the code. Please reduce it to a self-contained program of no more than 20 lines that still reproduces the problem.