Hi, so I have just returned to 3DGS and I'm totally lost now as I'm used to other languages then c.

Now to my question:
I have a struct
Code:
typedef struct INFANTRIST { 
	STRING* Name; 
	long ID;
	ENTITY* ent;
  
  struct INFANTRIST* next;
} INFANTRIST;



As you see it store it in some kind of linked List.
Now I want to save the whole List into a file.
I know how I'd do it with a normal .txt but I prefer binary files for saves.
I know
Code:
file_str_writeto( file_handle, (char*)&x , sizeof(INFANTRIST) );


but it will (obviously) just save the String Pointer, also it won't save the "long ID".

I tried some things but can't get it to work properly.
Any help for a successful comeback to 3DGS would be appreciated laugh

I hate it that I havn't used a c-like language for years, now that my university only uses java mostly smirk