CodeBase - Using simple .ini files, configurations, and tracking saved games

Return to the CodeBase listing

Category: File Control

Version: 1.07

0
0

Information

Uploaded: 17th Sep 2009 06:58

Modified: 23rd Nov 2015 20:25

Author:  Linehan

Summary

I will show you how to check for the existence of text files; such as a .ini file. Create it if it does not exist. Read configuration information if it DOES exist. I also how how to keep track of saved games for your programs.

Full Description

I CREATED THIS TUTORIAL CODE TO SHOW PEOPLE SOME SIMPLE EXAMPLES OF HOW THEY CAN CREATE, STORE, LOAD AND SAVE GAME CONFIGURATION DATA. I ALSO SHOW HOW YOU CAN KEEP TRACK OF SAVED GAMES AS WELL. OBVIOUSLY THIS SOURCE CODE WILL NOT COMPILE AND RUN. IT IS SIMPLY A STUDY GUIDE FOR THE BASICS OF TEXT FILE CREATION, READING AND WRITING. FEEL FREE TO USE ANY PART OF TYHIS SOURCE CODE IN YOUR OWN GAMES, BUT IF YOU DO, PLEASE GIVE CREDIT TO THE ORIGINAL AUTHOR. I know this is nothing spectacular as far as tutorials go, but I am learning quickly and I just wanted to do my part to share with the community.

Comments

No comments yet.