StackOverflow A27032801

CSharp · Console

/Program.cs

using System;
using System.Text;

public class Program
{
	public static void Main()
	{
		var sb = new StringBuilder();
		sb.Append(@"<%@ Page Language=");
		sb.Append(@"""c#""");
		sb.Append(" AutoEventWireup=");
		sb.Append(@"""true""");
		sb.Append(" CodeBehind=");
		sb.Append(@"""WebForm1.aspx.cs""");
		sb.Append(" Inherits=");
		sb.Append(@"""WebApplication1.WebForm1""");
		sb.Append("%>");
		sb.AppendLine();
		sb.Append("<html>");
		sb.AppendLine();
		sb.Append("<head>");
		sb.AppendLine();
		sb.Append("<h1>New File header</h1>");
		sb.AppendLine();
		sb.Append("</head>");
		sb.AppendLine();
		sb.Append("<body>");
		sb.AppendLine();
		sb.Append("<h2> New File Body</h2>");
		sb.AppendLine();
		sb.Append("</body>");
		sb.AppendLine();
		sb.Append("</html>");
		sb.AppendLine();
		
		Console.WriteLine(sb.ToString());
	}
}
;