im making gif maker using opencv and linked lists
now the structure is
// Frame struct
typedef struct Frame
{
char* name;
unsigned int duration;
char* path;
} Frame;
// Link (node) struct
typedef struct FrameNode
{
Frame* frame;
struct FrameNode* next;
} FrameNode;
the frameNode contains a frame that has all the data and it has next that is used for the linked list
now i want to save the data after making a gif let's say i have 3 frameNodes in the list
Name Duration Path
1 200 ms C:\Users\magshimim\Desktop\test\tt.png
2 500 ms
C:\Users\magshimim\Desktop\test\t.jpg
3 800 ms C:\Users\magshimim\Desktop\test\kitten_run.jpg
how do i save the name, duration, path and the next of each frameNode that when i comeback later on i can load the file and continue from where i left?