Write to standard error output using Console

suggest change
var sourceFileName = "NonExistingFile";
try
{
    System.IO.File.Copy(sourceFileName, "DestinationFile");
}
catch (Exception e)
{
    var stdErr = Console.Error;
    stdErr.WriteLine($"Failed to copy '{sourceFileName}': {e.Message}");
}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents