diff --git a/Blazor/Blazor/Pages/Chapters.razor.cs b/Blazor/Blazor/Pages/Chapters.razor.cs index d9c6866..d577b97 100644 --- a/Blazor/Blazor/Pages/Chapters.razor.cs +++ b/Blazor/Blazor/Pages/Chapters.razor.cs @@ -71,9 +71,12 @@ public partial class Chapters { using (var csvFile = new ChoCSVWriter(sb).WithFirstLineHeader()) { - csvFile.Write(json); + csvFile.Write(jsonFile); } } + + + string path = @"C:\temp\file"; // path to file using (FileStream fs = File.Create(path)) { @@ -85,5 +88,6 @@ public partial class Chapters byte[] data = new byte[] { 0x0 }; fs.Write(data, 0, data.Length); } + } } \ No newline at end of file