void CreatefileClick(object sender, EventArgs e)
{
name_file.Text = null;
string activeDir = @"C:\";
string newPath = System.IO.Path.Combine(activeDir, "MyProject");
Directory.CreateDirectory(newPath);
string newFileName = name_file.Text;
string pripona = ".mtg";
string pr_name = newFileName + pripona;
newPath = Path.Combine(newPath, pr_name);
if (String.IsNullOrEmpty(name_file.Text))
{
true_false.Text = "Zapomněl jsi vyplňit název souboru";
}
else
{
FileStream create = File.Create(newPath);
}
Close();
}
Příspěvky odeslané z IP adresy 89.103.132.–
anonymous