Answers for "c# create file in directory that doesn't exist"

C#
0

c# create file if not exists

string rootPath = Path.GetPathRoot(Environment.GetFolderPath(Environment.SpecialFolder.System));
        rootPath += "MTN";
        if (!(File.Exists(rootPath)))
        {
            File.CreateText(rootPath);
        }
Posted by: Guest on October-15-2021

Code answers related to "c# create file in directory that doesn't exist"

C# Answers by Framework

Browse Popular Code Answers by Language