A simple file handler for C