Using data from binary files?
I'm absolutely sure this would be possible, but how would one (if one could) go about putting variable data from a binary file (output via stdio.h functions like 'fopen' and 'fprintf' with the 'wb' mode) into a variable within a program? I'm basically trying to use this file as a 'config' file for a pc game I'm working on (this config file would be important for storing universal/multi-user settings, like the game's resolution and keyboard, etc), and this information would be additionally-useful in setting up my save system. I've been looking around, but I can't seem to find how to load such data into a variable within the program (either that, or I'm an oblivious moron who has repeatedly overlooked it). If anyone could point me in the right direction with this, you'll be a life-saver!
SOLVED: Using data from binary files?
Well, it can't be edited in a text editor, but it seems to work beautifully! This config file is created and set up with defaults whenever the game is run without finding a pre-existing config file, and all aspects which are okay for editting (meaning things which aren't system/hardware-reliant and automatically set up by detection) can be edited via the config menu (input, for instance, will need be to set up before all else to ensure the best experience for each keyboard layout). That tutorial has been bookmarked for reference, and I think we can call this inquiry 'resolved' now! ^_^