can I start by saying I have search for hours trying to fix this but am at a total loss and any help would be more than appreciated.
I need to read from a file and then assign the read in values to variables. Here is what I have so far.
Code:
#include <stdio.h>
FILE *fr;
int main(){
fr = fopen ("planes.txt", "rb");
char line[20][100];
char temp[100];
int count=0;
while(fgets(temp,100, fr) != NULL)
{
line[count] = temp;
count++;
}
fclose;
}
but i get the error
FileInput.c:15: error: incompatible types in assignment
I want to use the information read in later in the program.
thanks in advance
m1cha3l