C# Path PathSeparator

Description

Path PathSeparator A platform-specific separator character used to separate path strings in environment variables.

Syntax

Path.PathSeparator has the following syntax.


public static readonly char PathSeparator

Example

The following code example demonstrates the use of the PathSeparator field.


using System;//w w  w .j a va  2  s.c o m
using System.IO;
public class MainClass{
  public static void Main(String[] argv){  
    Console.WriteLine(Path.PathSeparator);
  }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.IO »




BinaryReader
BinaryWriter
Directory
DirectoryInfo
DriveInfo
File
FileInfo
FileStream
MemoryStream
Path
StreamReader
StreamWriter
StringReader
StringWriter