TwitCore/Models/TextFile.cs
/// <summary>
/// Reads a file using a stream reader
/// </summary>
/// <returns>File as a string</returns>
Reads a file using a stream reader
Reads a file using a stream reader
private string ReadFile() {
            string result = String.Empty;
            if(File.Exists(this.path))
                using (StreamReader sr = new StreamReader(this.path))
                    result = sr.ReadToEnd();
            return result;
        }
private string ReadFile ( ) { string result = String . Empty ; if ( File . Exists ( this . path ) ) using ( StreamReader sr = new StreamReader ( this . path ) ) result = sr . ReadToEnd ( ) ; return result ; }
Reads a file using a stream reader
Reads a file using a stream reader
File as a string
File as a string