title: How to write a file to a project folder in .NET Core?
body: <p>I have a Web API project that gets data from some external API calls.  For now, I want to write the returned data as json to a file and place that file in a folder in my project so that the data can be read for other calls.  I have to write them to a file and not store the information in memory.</p>
  
  <p>I've seen some examples of using System.IO to write files, but they all reference writing the files to a local file system outside of the project.</p>
  
  <p>What is the best way of doing this?</p>
  
  <p>I'm using .NET Core 3.1.</p>