using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Text;
public partial class _Default : Page
{
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
Textbox.Text = "Enter your Name here";
}
protected void Button_Click(object sender, EventArgs e)
{
string Filename = "http://localhost:55688/TextFile.txt";
if (!File.Exists(Filename))
{
StreamWriter txtFile = File.CreateText(Filename);
txtFile.Close();
txtFile = File.AppendText(Filename);
txtFile.WriteLine(Textbox.Text);
txtFile.Close();
}
else
File.AppendAllText(Filename, Textbox.Text);
NewName.Text = "Text is saved";
}
}
getting error "URI formats are not supported"