#ifndef _C2RW_FILE_H_
#define _C2RW_FILE_H_

#include "c2rw.h"

LPTSTR GetProgramDir(void);

BOOL load_cfg(LPTSTR fname);
BOOL save_cfg(LPTSTR fname);

BOOL load_asc(LPTSTR fname);
BOOL save_asc(LPTSTR fname);

BOOL load_bin(LPTSTR fname);
BOOL save_bin(LPTSTR fname);

void set_fileext(TCHAR* fnm, TCHAR* fext);
void build_fname(DWORD nres_ext);
BOOL dlg4load(DWORD nres_cap, DWORD nres_flt, TCHAR *fname);
BOOL dlg4save(DWORD nres_cap, DWORD nres_flt, TCHAR *fname);

#endif  // _C2RW_CFG_H_
