
So, let’s create a new JavaScript file called ‘File.js’ in the project and ‘./wwwroot/js’ folder. To create a file as a download, we need to use JavaScript to do this via the browser.

We will start by loading solution from Part 2 into Visual Studio. And the running sample of the B l azor app online.

You can find the source for the on GitHub. We will continue to use the Json-Csv converter page and classes from Part 2 (please read that article first). This includes C# code to perform the operation and then create the file download via JavaScript interoperability. In this article, we will add the ability to save the converted text to a local CSV file.
