This is C# version:
public static IEnumerable ReadLinesEnumerable(string path) { using ( var reader = new StreamReader(path) ) { var line
let lines = File.ReadLines(path) // To check lines |> Seq.iter(fun x -> printfn "%s" x)