Adjust fopen parameters to pass  at the right place...