Okay, so my code now looks like
typedef struct{
char text[50];
} line;
int main(int argc, char *argv[]){
Type: Posts; User: 8Aus9
Okay, so my code now looks like
typedef struct{
char text[50];
} line;
int main(int argc, char *argv[]){
I am trying to read a file and store each line in an array, but I am having a bit of trouble doing it.
This is my attempt, I know there must be a much simpler way to do this but after a few hours...
I have created my own structure using typedef but when I go to store values in a created one, I am going incompatible type errors
typedef struct{
FILE *fp;
char name[50];
char line[100];...