OK, you're right, it won't use up all my RAM. But is it really good programming practice to have all these unused variables lying around all the time? -Sebastian
S
Sebastian Blatt
@Sebastian Blatt
Posts
-
proper use of ini-files -
proper use of ini-filesHi, its not very much for a smaller program, but I was wondering if I should really store every minor option like background colors, switches for controls or windows the whole time the program is running. Thanks for your time. -Sebastian
-
proper use of ini-filesHi, almost every one of my programs uses an ini-file. I have written a class that scans the file at program start and stores all variables in a global dynamically allocated struct. Because this takes some memory when the program gets larger, I was wondering if scanning the file for a particular entry when it is actually needed wouldn't be the better alternative. What is the 'proper' way to use ini-files and why? -Sebastian