Recent

Author Topic: Save / Load data's  (Read 4590 times)

GoDxNero

  • Jr. Member
  • **
  • Posts: 58
Save / Load data's
« on: October 21, 2009, 07:18:49 pm »
What might be the best way to save and load data's ? Like in a game which you can save highscore .

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Re: Save / Load data's
« Reply #1 on: October 21, 2009, 08:35:38 pm »
If are few data, you can use IniFiles, they no need any client, fast and  lite.
If not, you can use some local database Dbf (no client need), Paradox, Sqlite or Firebird Embedded(need client).

You can use all this for develop a portable application.

Regards

eny

  • Hero Member
  • *****
  • Posts: 1634
Re: Save / Load data's
« Reply #2 on: October 21, 2009, 11:01:03 pm »
Inifiles are a good starting point.
The big advantage is that they are textfiles that can be read and manipulated easily with even the simplest text editor (i.e. notepad).
All posts based on: Win10 (Win64); Lazarus 2.0.10 'stable' (x64) unless specified otherwise...

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Save / Load data's
« Reply #3 on: October 22, 2009, 01:45:14 pm »
Depending on the data. For simple score saving, you can use .ini / .xml files. For big games where you need to save a lot of things, use serialization.

 

TinyPortal © 2005-2018