replaced the FOPEN_READ constant with 'rb'