Archived

This topic is now archived and is closed to further replies.

Tonic151

c - Indexed Data Files, For User Accounts

Recommended Posts

Tonic151    128
Hi, i''m creating a forum, BBS program, and i''ve having a little trouble with creating the User Data Files that will hold all the User Account information. Basically taking the User Struct, saving it to a file, and retreving it for user logon''s.. ie Username, Password.. And all other information.. and also adding multiple users and indexing it.. Would anyone have some great working examples.. i''m picking my brain out try to figure this out correctly and i''m not doing to good.. Thankx for anyhelp

Share this post


Link to post
Share on other sites
pirate_dau    151
You might think about looking into a database solution. mySQL has facilities to do this quite easily (you''ll have to learn a bit about SQL syntax, and how to set up the server, etc). The extra advantage of using mySQL would be that you would have a basic level of security, which is always nice when dealing with peoples'' passwords.

Here are some links:


I know it''s more stuff to learn, and initially you may think it''s a drag, but I think that it''s something that will benefit ya in the longrun. Well, at least for projects like this.

-pirate_dau

Share this post


Link to post
Share on other sites
Tonic151    128
Thanks man i do apprecieate it, but i''m not interested in SQL, and no way to setup a server.. i''m just looking for info on how to Write Structs to a .dat file, Append new Structs as in for different users.. and how to index and read them.. thats all. IF anyone could help with any examples or anything i''d be very apprecitive

Share this post


Link to post
Share on other sites