Page 1 of 1

Check for exists when using read method custom type

Posted: Thu Jul 19, 2018 8:11 am
by wrench_nz
Hi

Can I check exists within a custom type?

For example:

data.test = reader.ReadList<System.String>();

If it doesn't exist in the save file (previous version) can I do something?

Thanks,

Re: Check for exists when using read method custom type

Posted: Thu Jul 19, 2018 8:45 am
by Joel
Hi there,

It's not possible to check if a piece of sequentially written data exists prior to reading it. However, I describe a method of adding version numbers to your custom type here which allows you to keep track of versions.

All the best,
Joel

Re: Check for exists when using read method custom type

Posted: Thu Jul 26, 2018 8:04 am
by wrench_nz
Thanks Joel