My problems are these, what my program should do is read in from a file scmemail.txt, and write out to a file email.txt I've had this working but have lost it.
I also need to call a function make_name to tokenise lines in the file and then store the tokenised array of strings (last_name[i]) what i want to do is print out these strings in a loop but I can't get it to work, if I print out the strings and reference them last_name_,2 etc this works. but cannot get it to work in loop.
Can anybody help, I,ve include the file I'm working with any help would be greatly appreciated.
char *make_name(char *s);
char *a, *p, *name;
char buffer , s;
FILE *ifp, *ofp;
if ((ifp=fopen("scmemail.txt", "r")) == NULL)
printf("The file scmemail.txt could't be opened or is corrupt'/n'");
if ((ofp=fopen("email.txt", "w")) == NULL)
printf("The file email.txt couldn't be opened for writting please check disk space'/n'");
case'&'rintf(" here now\n"); /*visual check*/
name=make_name(s);/*Call to function make_name*/
char *make_name(char *s)
// char *last_name;
while(*kurt != '-')
} /* end of make_name function */