Mono.Debugger.Backend.Inferior.GetFileContents C# (CSharp) Method

GetFileContents() public static method

public static GetFileContents ( string filename ) : string
filename string
return string
        public static string GetFileContents(string filename)
        {
            try {
                StreamReader sr = File.OpenText (filename);
                string contents = sr.ReadToEnd ();

                sr.Close();

                return contents;
            }
            catch {
                return null;
            }
        }
Inferior