Saving from a linked list to a file and loading it back
问题 I'm having trouble loading from a file into a linked list, been trying the whole day first of all this is my struct typedef struct Sensor { int id; int intervalo; char local[30]; char tipo[30]; //bool active; int active; struct Sensor* anterior; struct Sensor* proximo; } Sensor; this is my save function which i think its working fine, since the file gets created and the content is there. void gravaLista(Sensor* l) { FILE *ficheiro; Sensor* temp = l; ficheiro = fopen("sensores.txt", "r+t"); if