data storage

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

User avatar
k1net1k
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 563
Joined: Sun Nov 07, 2010 2:58 pm
Contact:

Re: data storage

Post by k1net1k »

If you need to store a couple of strings, use a comma separated text file
If you want to save configurations, xml or something similar
If you want structured queries use SQL (or write your code differently so it doesnt need data supplied like that)
If you think you can do better, write your own file format and parsing.
If you are going to be sending these files between users, then you will have to export from your DB, into some format like JSON or XML or whatever to pass it to other users anyway. (again unless you roll your own for this as well)
I personally would stay well clear of Access DB's
mattheweston
Chaos Rift Junior
Chaos Rift Junior
Posts: 200
Joined: Mon Feb 22, 2010 12:32 am
Current Project: Breakout clone, Unnamed 2D RPG
Favorite Gaming Platforms: PC, XBOX360
Programming Language of Choice: C#
Location: San Antonio,Texas
Contact:

Re: data storage

Post by mattheweston »

Upon further consideration I think I 'll go with binary files. I figure I can separate different things into different files and then use something similar to a pak file to combine them for easy storage/transport.
Image
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: data storage

Post by Falco Girgis »

mattheweston wrote:Upon further consideration I think I 'll go with binary files. I figure I can separate different things into different files and then use something similar to a pak file to combine them for easy storage/transport.
Smart man. ;)
Post Reply