Best Way To Save Information (vb.net)

Talk about your favorite PC games, Steam and building awesome custom rigs!

Moderator: Moderators

Post Reply
ghosstt
Senior Member
Posts: 1551
Joined: Mon Feb 26, 2007 4:14 pm

Best Way To Save Information (vb.net)

Post by ghosstt »

Ok, as of right now, anything that I need to be saved and loaded the next time the program is run, I use .txt files, and read them with a streamreader (written with a streamwriter). Is there a better way to save things? I know some people have said things like using the registry, but I have 0 knoweledge in that subject. I was thinking using SQL(which is built in with VB.NET 2008 [which im using]), but once again, I have no idea how. Im thinking SQL would be the best bet, because I think you can make categories, and such, so its like a database? (I'm going to be saving things like times, and simple strings that need to be loaded each time). Could anyone point me in the right direction to learn SQL? :oops:
bicostp
Moderator
Posts: 10491
Joined: Mon Mar 07, 2005 5:47 pm
Steam ID: bicostp
Location: Spamalot
Contact:

Post by bicostp »

SQL isn't 'like' a database. It is a database. :P

You could do that, but the data will be stuck on that particular computer. You might be better off with something like XML files.

Here's a good SQL tutorial site one of my instructors had us use when we had that class:

http://sqlzoo.net
ghosstt
Senior Member
Posts: 1551
Joined: Mon Feb 26, 2007 4:14 pm

Post by ghosstt »

Hmmm.. Then I guess I wouldn't be able to use SQL. Im possibly hoping to release this software. Could you explain a little more on XML files? I would like whatever file type I use to not be editable by the user. (no going in through folders and deleting the .txt files :P )
Post Reply