getting a handle of fread, fwrite