Category : Files from Magazines
Archive   : VOL11N14.ZIP
Filename : FINDFILE.H

 
Output of file : FINDFILE.H contained in archive : VOL11N14.ZIP
// findfile.h

#if !defined(FINDFILE_H)
#define FINDFILE_H

#include
#include
#include
#include"stddefs.h"
#include"compiler.h"

class FindFile
{
struct ffblk F;
int notfound;
int nomore;

public:
FindFile(char *filename, unsigned type);
int FindNext(void);
int NotFound(void) { return notfound; }
int Found(void) { return !notfound; }
char *Name(void) { return F.ff_name; }
long Size(void) { return F.ff_fsize; }
};

class RecursiveFileFind
{
char rffdirspec[80], rfffilespec[13];
BOOL keycheck, eatkey;

BOOL rff(char *dirspec, char *filespec);
virtual void PostResults(char *,struct ffblk *) = 0;

public:
RecursiveFileFind(void)
{
*rffdirspec = *rfffilespec = '\0';
}

RecursiveFileFind(char *dspec, char *fspec)
{
Init(dspec,fspec);
rff(rffdirspec,rfffilespec);
}

void Init(char *dspec, char *fspec, BOOL keychecking = FALSE)
{
strcpy(rffdirspec,dspec);
strcpy(rfffilespec,fspec);
keycheck = keychecking;
eatkey = FALSE;
}

BOOL Run(void)
{
return rff(rffdirspec,rfffilespec);
}

BOOL Run(char *dirspec, char *filespec)
{
return rff(dirspec,filespec);
}

void SetKeyCheck(void)
{
keycheck = TRUE;
}
void SetEatKey(void)
{
keycheck = eatkey = TRUE;
}
};

#endif







  3 Responses to “Category : Files from Magazines
Archive   : VOL11N14.ZIP
Filename : FINDFILE.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/