Token parsing
This is what I have:
FILE* DB_handle = fopen (dbfile, "rb");
if (DB_handle!=NULL) {
char *read;
char *id;
struct _stat buf;
char token[] = "";
_fstat(_fileno(DB_handle), &buf);
read = (CHAR*)malloc(buf.st_size);
fread(read,sizeof(CHAR),1,DB_handle);
id = strtok(read,token);
while (id != NULL) {
fputs("<td>",site_handle);
fputs(id,site_handle);
fputs("</td>",site_handle);
id = strtok(NULL,token);
}
Ok, so what I'm trying to do is read a file into the memory as a CHAR, then scan that for my token, then every time it comes up, write it to an html table.(site_handle is the .html file)
It all compiles, however it's only getting 1 token, and i think I may be loading it into the CHAR wrong.

