c# – Unity: How do I store, calculate and retrieve data to make an expense tracker app

I am making a simple expense tracker app for myself which have the following features:

  1. Year wise lists(2025,2026,2027…)
  2. Month wise lists within year lists(Jan, feb, mar…).
  3. Days wise lists within months(1,2,3…).
  4. Expense sheet in each day in which expense entries will be created.

What these lists should do is: calculate & show total expenses in a day, in all days of the month, in all months of the year.

I see two approaches to do this:

  1. Using playerprefs
  2. Storing data in a json/XML file.

Can someone explain which will be the best option and how exactly I should do it in each case?

Read more here: Source link