string pathUser69 = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
string pathCombiner = Path.Combine(pathUser69 + @"\text editor\projects\");
string pathCompile = Path.Combine(pathCombiner + textEdit1.Text);
string path = pathCompile + @"\text.txt";
Directory.CreateDirectory(pathCombiner + textEdit1.Text);
if (!File.Exists(path))
{
File.Create(path).Dispose();
private Form1 f1 = new Form1();
f1.richTextBox1.LoadFile(path, RichTextBoxStreamType.PlainText);
}
else if (File.Exists(path))
{
XtraMessageBox.Show("There is already a file with that name", title);
}
string pathUser69 = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
string pathCombiner = Path.Combine(pathUser69 + @"\text editor\projects\");
string pathCompile = Path.Combine(pathCombiner + textEdit1.Text);
string path = pathCompile + @"\text.txt";
Directory.CreateDirectory(pathCombiner + textEdit1.Text);
if (!File.Exists(path))
{
File.Create(path).Dispose();
private Form1 f1 = new Form1();
f1.richTextBox1.LoadFile(path, RichTextBoxStreamType.PlainText);
}
else if (File.Exists(path))
{
XtraMessageBox.Show("There is already a file with that name", title);
}
Private Form1 f1 = new Form1();
Form1 f1 = new Form1();
f1 = (Form1)Application.OpenForms["Form1"];
Private Form1 f1 = new Form1();
Form1 f1 = new Form1();
f1 = (Form1)Application.OpenForms["Form1"];
Form1 f2 = new Form1();
f2 = (Form1)Application.OpenForms["Form1"];
f2.richTextBox1.LoadFile(path, RichTextBoxStreamType.PlainText);
Copyright © 2026, NextGenUpdate.
All Rights Reserved.