Skip to content

Instantly share code, notes, and snippets.

Created May 23, 2022 10:49
What would you like to do?
Generate and Open HTML in C#
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
File.WriteAllText("weather.html", "<html><h1>Weather</h1></html>");
var p = new Process();
p.StartInfo = new ProcessStartInfo("weather.html")
UseShellExecute = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment