public static async ???? ReadFileLineByLineAsync(string file)
{
using(StreamReader s = new StreamReader(file))
{
while (!s.EndOfStream)
yield return await s.ReadLineAsync();
}
}
I want to write a async function for reading a file line by line. what should be the return type of this function. I would appreciate any suggestions on this.