Argentini.Halide.H3Storage.ReadFile C# (CSharp) Method

ReadFile() public static method

Reads the contents of a text file.
public static ReadFile ( string filename ) : String
filename string Web-formatted path and file name to read.
return String
        public static String ReadFile(string filename)
        {
            string inn = "";

            try
            {
                string fn = H3Storage.MapPath(filename);

                using (StreamReader sr = new StreamReader(fn))
                {
                    inn = sr.ReadToEnd();
                }
            }

            catch
            {
                return (string.Empty);
            }

            return (inn);
        }