async Task <IEnumerable <string> > ReadLine() { string filename = this.GetFileName(); var r = await CurrentFolder.CheckExistsAsync(filename); if (r.HasFlag(PCLStorage.ExistenceCheckResult.NotFound)) { ReportManage.ErrReport(this, "File「" + filename + "」は存在しません"); return(new List <string>()); } IEnumerable <string> list = new List <string>(); try { var file = await GetFileAsync(filename); using (var stream = await file.OpenAsync(PCLStorage.FileAccess.Read)) { var s = new System.IO.StreamReader(stream); if (readEnd) { list = new List <string>() { s.ReadToEnd() }; } else { list = s.ReadLines(); } } } catch (Exception ex) { ReportManage.ErrReport(this, FileName + "を開くのに失敗しました" + ex.Message); } return(list); }