To write text to a file, you can simply use the following Razor (C#) statements. Please note your IIS host must be allowed to write to the specified folder:
@{ System.IO.File.WriteAllText("C:\\MyFolder\\MyFile.txt", "Some text"); }
Powered by Revindex Wiki