by insulanian · 9y ago · 0 comments
open System.IO
for line in File.ReadLines("/path/to/file") do
printfn "%s" line "/path/to/file"
|> File.ReadLines
|> Seq.iter (printfn "%s")
the printfn can be expanded as function, instead of partial app "/path/to/file"
|> File.ReadLines
|> Seq.iter (fun line -> printfn "%s" line)