public IEnumerable <string> Read(string path) { var response = httpClient.GetAsync(path).Result; var stream = response.Content.ReadAsStreamAsync().Result; return(streamReader.ReadByline(stream)); }
public IEnumerable <string> Read(string path) { if (!File.Exists(path)) { throw Exceptions.FileNotFound(path); } return(streamReader.ReadByline(new FileStream(path, FileMode.Open))); }