Hi,
Need some help reading a text file to struct
.txt file attached.
so what i need to do is read the name, the ascii picture, and rating to a struct.
;Code:typedef struct { char name[50]; char picture[100]; int rate; }pic
tried fgets with sscanf, but that reads each line of the file, which would be fine for the name but i would like to place the whole ascii picture to one array.
some guidance would be appreciated.