How to search for keys using the character '*'

Discussion and help for Easy Save 3
Post Reply
tuanha
Posts: 12
Joined: Wed Jun 08, 2022 1:41 am

How to search for keys using the character '*'

Post by tuanha »

I save using the following keys: chat_a_b_0901 and chat_a_b_0902 using Easy Save. Is there a way to find keys using wildcards like this: chat_a_b_*, which would list both of these keys?
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: How to search for keys using the character '*'

Post by Joel »

Hi there,

You would need to use ES3.GetKeys to get all of the keys from the file, and then perform the search yourself.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
tuanha
Posts: 12
Joined: Wed Jun 08, 2022 1:41 am

Re: How to search for keys using the character '*'

Post by tuanha »

If one day I want to save chat data in a file, and for 30 days, that's 30 files to read one by one, can Easy Save create multiple files per day like that, admin?
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: How to search for keys using the character '*'

Post by Joel »

You can specify the filename using the filePath parameter of the ES3 methods. Each different file path you use will create a new file.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
tuanha
Posts: 12
Joined: Wed Jun 08, 2022 1:41 am

Re: How to search for keys using the character '*'

Post by tuanha »

Thank you, I also have a solution, it is possible to split the keys, like files
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: How to search for keys using the character '*'

Post by Joel »

Sorry I'm not sure what you mean. Could you clarify?
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply