i'm fetching a file by HttpRequestedFileBase, txt type, and I need to read each line in the file and store those line in variables to workin with them. But I'm wondering if i should convert the file to read it. Also I get some errors whiles I was trying to implement the read.
var file = Request.Files[0];
string value = Request.Form["objectList"].ToString();
string[] keys = Request.Form.AllKeys;
string banc = form["objectlistbanc"].ToString();
var lix = file.InputStream; //not sure if inputsteam is what i need
var lines = File.ReadAllLines(lix); // error here says i need a fileContenResult using file content and file type
foreach (var line in lines) {
string ln = line;
}