I\'m coming to F# from a C# background and a little behind on the different lists and collections. I recently ran into a case where I needed to go from a string[] to \'T lis
Here's another way to do it:
let listOfLines = [yield! File.ReadAllLines(@"C:\LinesOText.txt")]
Use List.ofArray or Array.toList.
this should do it:
let lines = File.ReadAllLines(@"C:\LinesOText.txt") |> List.ofArray