TwitCore/Models/TextFile.cs
/// <summary>
/// Reads a file line by line
/// </summary>
/// <returns>List of string for each line</returns>
Reads a file line by line
Reads a file line by line
private List<string> ReadFileList() {
            var result = new List<string>();;
            if (File.Exists(this.path))
                foreach (var line in File.ReadLines(this.path))
                    if(line != String.Empty)
                        result.Add(line.Trim(' '));
            return result;
        }
private List < string > ReadFileList ( ) { var result = new List < string > ( ) ; ; if ( File . Exists ( this . path ) ) foreach ( var line in File . ReadLines ( this . path ) ) if ( line != String . Empty ) result . Add ( line . Trim ( ' ' ) ) ; return result ; }
Reads a file line by line
Reads a file line by line
List of string for each line
List of string for each line