Load big text file with Easy Save

Discussion and help for Easy Save 3
Post Reply
Michal.Stangel
Posts: 10
Joined: Mon Mar 18, 2019 3:12 pm

Load big text file with Easy Save

Post by Michal.Stangel »

Hello,

I have text file with 50k+ rows and want to load it and save every row to ingame C# Dictionary. Where Row1 in text file is dictionary Key, Row2 is dictionary Value, and so on.
I already use ES3 to save and load games and been wondering if it's good idea use it for this case too? Not sure what would be the best approach though, to make it work as fast as possible.

Thanks,
Michal
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Load big text file with Easy Save

Post by Joel »

Hi Michal,

Easy Save provides functionality to load an entire text file at once (ES3.LoadRaw), but there is currently no way to parse that file line-by-line. Instead you would want to use a TextReader and FileStream for this.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply