|
-
August 19th, 2009, 05:06 PM
#1
Using binary files as database?
Ok, let's rephrase that cause after reading what I typed it didn't really made sense...
I want to save character info (yes, it's for a game)
With ini files the file has a structure like this:
Code:
[Username]
Password= something
Security=Stuff
email=mail
Character profession= prof
level=char level
hit points= hp
skills= skills char has
items= char's items
etc.
Which makes it easy to load/save and serves as a easy editable database.
But I want to use binary files instead of ini files (cause I read that binary files were faster with loading)
But I just can't seem to correctly save or read the files...
Original post:
So I'm trying to code something that saves/reads accounts in binary files but since this is the first time ever that I tried to do something with binary files, I'm kinda stuck.
_____
So let's say that I want to save/read:
Example.dat (where Example is the username)
Password
e-mail
security Q/A
How would I do that?
Last edited by Creqaw; August 20th, 2009 at 10:08 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|