whats a good way to save a table of data to a file?

i've got a school project that im working on, i've got almost everything figured out but i cant figure out how to save the data to a file. i've tried using SQL but that seems like a massive hassle to get working, considering how small the project is
7 Replies
Keswiik
Keswiik2mo ago
EFCore + sqlite is pretty easy to set up, i'd recommend that approach over something janky however you could also write it as json or yaml to a file if you want to be lazy
ـّّّ Jordan't ـّّّ
i have been using sqlite. i haven't heard of EFCore though. i also have no idea where to even get started with json or yaml :woe: i have an sqlite database all set-up and ready. i haven't had much luck with incorporating it into my code though. its getting pretty late now though, so i'll try out EFCore tomorrow
Jimmacle
Jimmacle2mo ago
it depends what the end goal is, is something simple like CSV enough? https://joshclose.github.io/CsvHelper/
ـّّّ Jordan't ـّّّ
there was a bit more to it but this is the important bit.
No description
No description
ـّّّ Jordan't ـّّّ
this might work. looks a lot more like what im used to using in unity (im using a winform for the first time for this project though)
Salman
Salman2mo ago
Yeah CSV is really a convenient option if all you need to do is to store data to a file. But later on you might want to figure out EF with DB Engines as well. For now CSV can do the job tbf
Jimmacle
Jimmacle2mo ago
if all you need to do is store flat/tabular data and not have to search through a lot of it CSV is plenty databases are better when you have a lot of data or more complex structures

Did you find this page helpful?