A simple file handle using C