Added fopen support

Supports fopen.