Thanks for at least reading.
My assignment is to prompt for a filename, change the contents to caps, and print. I have the following, and it's giving me the error at line 25 (the inside loop)
Assignment makes integer from pointer without a cast
What does that mean, and how can I get rid of it?
#include<stdio.h>
#include<stdlib.h>
int filechar(char []);
int main()
{
FILE *inFile;
char filename[13], line[256];
int numchar, i;
printf("Please enter the name of the file you wish to open:");
gets(filename);
inFile=fopen(filename, "r");
while (fgets(line,256,inFile) != NULL)
for (i = 0; line[i] = NULL; i++);
line[i] = toupper(line[i]);
fputs(line, inFile);
printf("%s\n", line);
fclose(inFile);
return 0;
}