Horje
c# create empty file if not exists Code Example
c# create empty file if not exists
string temp = AppDomain.CurrentDomain.BaseDirectory;
			string sPath = Path.Combine(temp, "file.txt");

bool fileExist = File.Exists(sPath);
        if (fileExist) {
            Console.WriteLine("File exists.");
        }
        else {
          using (File.Create(sPath)) ;
            Console.WriteLine("File does not exist.");
        }




Csharp

Related
tempdata serializer cannot erorr Code Example tempdata serializer cannot erorr Code Example
c# read single key Code Example c# read single key Code Example
virtual list entity framework Code Example virtual list entity framework Code Example
why is c# say ; expected Code Example why is c# say ; expected Code Example
c# use cefcharp and selenium can? Code Example c# use cefcharp and selenium can? Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7