How to read and write a data structure in a flat file?.

Hi Ivan3z,

Just make “ToString” and “FromString” functions in your structure and save using something like the FPlatformFileManager.

Those are just wrappers to allow file IO on all platforms - if you’re just using windows or another OS you can of course just write your own routines using that platforms IO routines (eg iostream).

1 Like