public Card LoadCard() { var gitHubUrl = UrlTemplate.Replace("USERNAME", _username); var sr = new StreamReader(new HttpClient().GetStreamAsync(gitHubUrl).Result); string line = null; var lines = new List <string>(); while ((line = sr.ReadLine()) != null) { lines.Add(line); } return(CardHelpers.CardFromLineArray(lines.ToArray())); }
public Card LoadCard() { var cardDataLines = File.ReadAllLines(Filename); return(CardHelpers.CardFromLineArray(cardDataLines)); }