How to write to a text file using Fable?

  • Thread starter Thread starter cschristine
  • Start date Start date
C

cschristine

Guest
I'm trying to use Fable to convert some f# code I wrote into a web project, but I'm having some trouble with writing file output. Previously, when I just had a net core project, I could just do something like this:

File.WriteAllText("output.txt", "hello")

But now if I try that, I get this error:

error FABLE: Cannot resolve System.IO.File.WriteAllText @ ./src/App.fsproj

Is there something I need to import/add to make this work? Or is there a different way to write files in Fable? I would really appreciate any help or suggestions. Thank you in advance!

Continue reading...
 
Back
Top