title: fs.createReadStream is not finding file
body: <p>I'm studying Node.js right now, using the "Beginning Node.js" textbook.</p>
  
  <p>The example in the book does not execute properly in the command prompt. (I'm using Ubuntu 18.04 with Node v9.4.0, and the book is three years old, so this may be related?)</p>
  
  <p>In the downloadable source code for the book, this is the code that is provided:</p>
  
  <pre><code>var fs = require('fs');
  
  // Create readable stream
  var readableStream = fs.createReadStream('./cool.txt');
  
  // Pipe it to out stdout
  readableStream.pipe(process.stdout);
  </code></pre>
  
  <p>The file, <code>cool.txt</code>, is in the parent directory. </p>
  
  <p>--parentFolder</p>
  
  <p>----jsFileToExecute.js</p>
  
  <p>----cool.txt</p>
  
  <p>When I run <code>node jsFileToExecute.js</code> in the command prompt, I get this response:</p>
  
  <pre><code>events.js:137
        throw er; // Unhandled 'error' event
        ^
  
  Error: ENOENT: no such file or directory, open './cool.txt'
  </code></pre>
  
  <p>As this source code is directly from the textbook publisher's website and it still doesn't run, I'm assuming there's something wrong with it?</p>
  
  <p>Looking for solutions to figure out why this isn't working. I've looked at the documentation at nodejs.org, but didn't find any clues. </p>
  
  <p>Thank you for any help!</p>