Oct 29, 2009 10:37 AM|saburius|LINK
Hi, I can read a css file and display it in a textbox but can't figure out how to save changes. In other words how to write or overwrite a css file. I'm working on a simple cms app and would like to be able to make changes to the css files when needed.
Reading the file seems so simple but writing to it I don't understand. Can you help?
string cssFile = File.ReadAllText(this.MapPath("~/admin/themes/default/default2.css"));
TextBox1.Text = cssFile.ToString();