title: Relative Path Error in Nodejs?
body: <p>Hello This is my folder Structure and i want to require/import the serverError.log file in app.js.</p>
  
  <p>To require the config file i am using 
  "require(../../../../../config/db.js)" and its works fine for db.js.But whenever i am giving readFile("../../../../../log/serverError.log").</p>
  
  <p>Its giveing no such file or directory, open '../../../../../log/serverError.log' .But its working fine in other mechine.</p>
  
  <p>So can anyone help me with this</p>
  
  <pre><code>/home/akash/MYB_GIT
  └── mbox
      ├── config
      │   └── db.js
      ├── log
      │   └── serverError.log
      ├── services
      │   └── Node
      │       ├── api
      │       │   └── user
      │       │       └── web
      │       │           └── app.js
      │       └── modules
      │           ├── Admin
      │           │   └── api1.js
      │           ├── Guest
      │           │   └── api2.js
      │           └── user
      │               └── api3.js
      └── Test
          └── seneca_client
              ├── audit
              └── user
  </code></pre>