DEV Community

Discussion on: Managing and handling the filesystem using .NET Core

Collapse
towernter profile image
Tawanda Nyahuye

Good article thanks. Can you change the code snippets to use markdown code syntax to make it clear

Example of your snippet:

static void OutputFileSystemInfo()
{
WriteLine("{0,-33} {1}", "Path.PathSeparator", PathSeparator);
WriteLine("{0,-33} {1}", "Path.DirectorySeparatorChar",
DirectorySeparatorChar);
WriteLine("{0,-33} {1}", "Directory.GetCurrentDirectory()",
GetCurrentDirectory());
WriteLine("{0,-33} {1}", "Environment.CurrentDirectory",
CurrentDirectory);
WriteLine("{0,-33} {1}", "Environment.SystemDirectory",
SystemDirectory);
WriteLine("{0,-33} {1}", "Path.GetTempPath()", GetTempPath());
WriteLine("GetFolderPath(SpecialFolder");
WriteLine("{0,-33} {1}", " .System)",
GetFolderPath(SpecialFolder.System));
WriteLine("{0,-33} {1}", " .ApplicationData)",
GetFolderPath(SpecialFolder.ApplicationData));
WriteLine("{0,-33} {1}", " .MyDocuments)",
GetFolderPath(SpecialFolder.MyDocuments));
WriteLine("{0,-33} {1}", " .Personal)",
GetFolderPath(SpecialFolder.Personal));
}
Enter fullscreen mode Exit fullscreen mode