c# - What is the best solution for saving user application data locally? -


i adding contact functionality program, , want save contact list of each individual user, best solution this? new xml , databases , don't know best or if there database solution saves locally.

it depends on platform targeting , size , complexity of data structures want persist. open , readable format xml or json or else preferable larger applications things sqlite database or custom save format might appropriate.

so, biggest things consider are:

  • support platform/language of choice
  • importance of human-readability/hackability (could desirable or undesriable, , note impacts ability of third party developers build applications consume saved data)
  • size
  • speed of accessing data (with potential tradeoff of how memory take load memory @ once)

for combinations of plain text file works, gives near-universal language , platform support, human readable , editable, tend large fair amount of data. larger applications, sqlite database right answer though have check , make sure platform/language supports (most do), means can't edited in text editor (though users can use sqlite modify), , compact , quite fast.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -