Simple: add function
void MySingleLineOfCodeFunction(string path, string filename)
{
Directory.Createdirectory(path);
File.Create(filename);
}
and then use one line of code:
MySingleLineOfCodeFunction(@"C:\x\y\z\", "a.txt");
, , , .
Microsoft, - . .:)