ArnolyzerDocumentationGenerator.ArnolyzerDocumentationGenerator.FileContentsIfExists C# (CSharp) Method

FileContentsIfExists() private static method

private static FileContentsIfExists ( string fileName ) : string
fileName string
return string
        private static string FileContentsIfExists(string fileName)
        {
            try
            {
                return File.ReadAllText($@"..\..\DocumentationTemplates\{fileName}");
            }
            catch (FileNotFoundException)
            {
                if (fileName.Contains("cause"))
                {
                    Console.WriteLine($@"-----> {fileName} not found.");
                }
                return "";
            }
        }
    }