We should use generic pointer as file pointer instead of uint_8 pointer.