using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WinFormsApp3 { public partial class Form2 : Form { public string Path { get; set; } public Form2() { InitializeComponent(); } private void Form2_Load(object sender, EventArgs e) { if (File.Exists(Path)) { cssTxt.Text = File.ReadAllText(Path); } } private void saveBut_Click(object sender, EventArgs e) { File.WriteAllText(Path, cssTxt.Text); this.Close(); } } }