/* FileIO.h - part of !GameID
 *  Musus Umbra 1997
 */

#ifndef parsefile_h
#define parsefile_h

#include "gameid.h"
#include <stdio.h>

/* Parse a (desklib style) 'messages' file and create a gamelist from it */
extern gamelist readfile( char *filename );

/* Write a (desklib style) 'messages' file from the gamelist 'gl' */
extern void writefile( FILE *ostream, gamelist gl );

/* Copy the comments at the head of 'old_file' to 'ostream' */
extern void copy_comments( FILE *ostream, char *old_file );

#endif
