Skip to content

Instantly share code, notes, and snippets.

@vgaltes
Last active December 13, 2015 11:16
Show Gist options
  • Save vgaltes/de82a84c79f428f00e34 to your computer and use it in GitHub Desktop.
Save vgaltes/de82a84c79f428f00e34 to your computer and use it in GitHub Desktop.
Reading the log file
[<Literal>]
let lineBreak = "\r\n"
let filePath =Path.Combine(__SOURCE_DIRECTORY__, "..\..\Data\gitLog.log")
let file = File.ReadAllText(filePath)
let commits = file.Split([|lineBreak + lineBreak|], StringSplitOptions.RemoveEmptyEntries)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment