Horje
c# check if a directory exists Code Example
c# check if a directory exists
	string directory = @"C:\folder name";
  
	if (Directory.Exists(directory)
    {
    	// Directory exits!
    }
c# check if string is path or file
// get the file attributes for file or directory
FileAttributes attr = File.GetAttributes(@"c:\Temp");

//detect whether its a directory or file
if ((attr & FileAttributes.Directory) == FileAttributes.Directory)
    MessageBox.Show("Its a directory");
else
    MessageBox.Show("Its a file");




Csharp

Related
how to convert string to bool c# Code Example how to convert string to bool c# Code Example
c# absolute value Code Example c# absolute value Code Example
degree to radians c# Code Example degree to radians c# Code Example
how to make something addforce in the direction of something in untiy Code Example how to make something addforce in the direction of something in untiy Code Example
unity cosinus Code Example unity cosinus Code Example

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