Check for exists when using read method custom type

Easy Save 2 has been replaced by Easy Save 3, so is no longer supported.
Locked
wrench_nz
Posts: 2
Joined: Thu Jul 19, 2018 8:08 am

Check for exists when using read method custom type

Post 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,
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Check for exists when using read method custom type

Post 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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
wrench_nz
Posts: 2
Joined: Thu Jul 19, 2018 8:08 am

Re: Check for exists when using read method custom type

Post by wrench_nz »

Thanks Joel
Locked