I am not sure of understanding what you want to do with the data you obtain from the file, but i agree with Bayint. I think you can manage it with an array of structs. It depends on what do you have...
Type: Posts; User: Kais3r
I am not sure of understanding what you want to do with the data you obtain from the file, but i agree with Bayint. I think you can manage it with an array of structs. It depends on what do you have...
but you tried it with a correct input or with a incorrect one?
edit: I hadnt read the last post :)
well, the post is not needed any more :) it can be closed
The answer is that reflection is not implemented in C, so it can't be done that way :)
no, you are not getting the value from the file, you are getting the name of the constant, and you want to use it.
Imagine you would have CONSTANT_X defined in your whatever_you_are_doing :) and...
Hi everyone,
I'm trying to read a settings file for a program i'm working on. This settings file is something like this:
option1=asdf
option2=5
option3=CONSTANT_X
where CONSTANT_X is a...