using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;

namespace ControlExplorer.C1Editor
{
	public partial class SpellChecking : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!IsPostBack)
			{
				Editor1.Text = GetFileContent();
			}
		}

		private string GetFileContent()
		{
			string text = string.Empty;
			StreamReader sr = File.OpenText(Server.MapPath("~/App_Data/Halo3.txt"));
			try
			{
				text = sr.ReadToEnd();
			}
			catch { }
			finally
			{
				sr.Close();
			}
			return text;
		}
	}
	}
