line 70 fopen refered to wrong file