title: Is it possible to read File from same folder where Azure function exists
body: <p>In my Azure C# function I need to read a .txt file. I make the .txt file in Visual studio and set it to "copy Always".</p>
  
  <p>Now I am using this code to read the file</p>
  
  <pre><code>var dir = System.IO.Path.GetDirectoryName(
      System.Reflection.Assembly.GetEntryAssembly().Location);
  
  var path = System.IO.Path.Combine(dir, "twinkle.txt");
  </code></pre>
  
  <p>this code doesn't work. When I open the folder which is the value of dir. It lead me to this directory ""C:\Users{username}\AppData\Local\Azure.Functions.Cli\1.0.9""</p>
  
  <p>How I can store a simple txt file in Azure function. Or I need Azure Storage for this.</p>
  
  <p>Anything else I can do to get this done.</p>
  
  <p>Update for showing file copied</p>
  
  <p><a href="https://i.stack.imgur.com/Q86KB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Q86KB.png" alt="enter image description here"></a></p>