LiquidG
01-14-2003, 10:11 PM
In short, here's my dillemma:
I have this C file I've been working on, file1.c, that has a bunch of global variables contained in it (amongst other things). I'm going to run this file on a system that does not have a compiler on it, so I will be statically compiling it on another machine and coping it over. Before the execution of the file1.c (on the compiler-less system), I want to be able to change the values of some of the global variables, so I thought the best way would be to read them from a *.txt file. Thing is, all the vars may not need changing, and the *.txt file should only contain the "updates" to only those global vars that need changing (from the defaults set in file1.c).
Any suggestions?? I'm at a complete and utter loss.
I have this C file I've been working on, file1.c, that has a bunch of global variables contained in it (amongst other things). I'm going to run this file on a system that does not have a compiler on it, so I will be statically compiling it on another machine and coping it over. Before the execution of the file1.c (on the compiler-less system), I want to be able to change the values of some of the global variables, so I thought the best way would be to read them from a *.txt file. Thing is, all the vars may not need changing, and the *.txt file should only contain the "updates" to only those global vars that need changing (from the defaults set in file1.c).
Any suggestions?? I'm at a complete and utter loss.