I need help using fprintf (if indeed that is what I should be using)
char word[1000][80];
FILE *output;
output=fopen("file1.txt", "w");
for (i=0;i<no_of_words;i++) {
fprintf(output, "%s", word[i]);
fprintf(output, word[i]);
}
fclose(output);
This creates the file and modifies it (txt editor assures me) but the file contains nothing... nada... zip...
I included both my attempts at implementing fprintf but neither produce any visible output in "file1.txt". Hope I've included enough code.
Any help would be great, thanks...