I want to be able to use the code block below, but instead of using a saved file I have an uploaded file as a HttpPostedFileBase
. How to I convert that to an equivalent format where I can use the contents of the uploaded file with the code below without saving it first?
List<DailyValues> values = File.ReadAllLines("C:\\Users\\Josh\\Sample.csv")
.Skip(1)
.Select(v => DailyValues.FromCsv(v))
.ToList();