I need some help with debugging this problem. I just started learning how to store files at C but I can't seem to check if this code is correct since I can't compile it well. Might anyone help me point out the problems in my code?

include <stdio.h>

include <stdlib.h>

include <string.h>

typedef char string25[26];

struct nodeTag;
{
nameType sData;
struct nodeTag *pLink;
}

typedef struct nodeTag *ptrNode;

int main()
{
FILE pFile;
ptrNode pFirst = NULL,pRun;
/
get inputs for linked list/
if(pFile=fopen("words.txt","wb"))!=NULL)
{
pRun = pFirst;
while(pRun != NULL)
{
fwrite(&amp;pRun->sData,sizeof(nameType),1,pFile);
pRun=pRun->pLink;
}
fclose(pFile);
/
free linked list*/
return 0;
}

use a FILE pointer which will let the program keep track of the file being accessed
for example it's

FILE *pFile;

but I can't seem to check if this code is correct since I can't compile it well.

if you can't compile it well isn't that a sign that there's something wrong already :)

This question has already been answered. Start a new discussion instead.