Search:

Type: Posts; User: Kais3r

Search: Search took 0.01 seconds.

  1. I am not sure of understanding what you want to...

    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...
  2. Replies
    15
    Views
    3,704

    but you tried it with a correct input or with a...

    but you tried it with a correct input or with a incorrect one?

    edit: I hadnt read the last post :)
  3. Replies
    4
    Views
    1,301

    well, the post is not needed any more :) it can...

    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 :)
  4. Replies
    4
    Views
    1,301

    no, you are not getting the value from the file,...

    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...
  5. Replies
    4
    Views
    1,301

    read a constant name from a file

    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...
Results 1 to 5 of 5