/// <summary> /// Reads the file and returns contents as string. /// </summary> /// <param name="fileName">Name of the file.</param> /// <returns></returns> static public string ReadFile(string fileName) { var results = new StringBuilder(); using (var reader = new TextFileReader { FileName = fileName }) { foreach (var line in reader.Lines()) { results.Append(line); } } return(results.ToString()); }
private const string SymmProvider = "CallDataKey"; // BUGBUG:SCOPE need to add this as parm #region LoadFileText /// <summary> /// LoadFileText returns the contents of the specified filespec as string /// </summary> /// <param name="file">file to read</param> /// <returns>contents of file as string</returns> static public string LoadFileText(string file) { return(TextFileReader.ReadFile(file)); }