title: file_get_contents to get file in your own local machine
body: <p>I am currently testing my code on my local machine and I wanted it to be able to read and write to a text file I have so I have the following code:</p>
  
  <pre><code>Warning: file_get_contents(~/Desktop/insta_user.txt): failed to open stream: No such file or directory in /Users/Brad/Sites/App/src/App/MainBundle/Controller/InstaController.php on line 33
  </code></pre>
  
  <p>Here's the code that I have:</p>
  
  <pre><code>$file = '~/Desktop/insta_user.txt';
  $current = file_get_contents($file, FILE_USE_INCLUDE_PATH);
  </code></pre>
  
  <p>The file already exists on my desktop, just wondering how I can write to this file locally.</p>