passing filepath from another file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fusionfusion
    New Member
    • Nov 2008
    • 1

    passing filepath from another file

    Hi
    I want to avoid hardcoding the filepath in my C program. I want to store the filepath in a variable in a text file. then i have to pass that variable to another file. ex. "$ADE_VIEW_ ROOT/a/b/c/a.txt" . Im executing C files in Linux env.
    If anyone knows pls help me.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    So what exactly do you need help with here? Have you tried the code and got an error?

    Comment

    • donbock
      Recognized Expert Top Contributor
      • Mar 2008
      • 2427

      #3
      This sort of scheme works for run-time determination of the file path. It won't work at compile-time (for #include). You didn't say which you were trying to achieve.

      Comment

      Working...