C# Path VolumeSeparatorChar

Description

Path VolumeSeparatorChar Provides a platform-specific volume separator character.

Syntax

Path.VolumeSeparatorChar has the following syntax.


public static readonly char VolumeSeparatorChar

Example

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


//from ww w . ja v a  2s . co  m
using System;
using System.IO;
public class MainClass{
  public static void Main(String[] argv){  
    Console.WriteLine(Path.VolumeSeparatorChar);
  }
}

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