Add mode and multiple call to fopen() management.