Add ec_fopen() and ec_fclose()