Skip to content

Instantly share code, notes, and snippets.

@AfterLemon
Forked from anonymous/gist:6024543
Last active December 19, 2015 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AfterLemon/6024583 to your computer and use it in GitHub Desktop.
Save AfterLemon/6024583 to your computer and use it in GitHub Desktop.
FileName := "default2.ahk"
FileRead, FileIn, %FileName%
Loop, Parse, FileIn, `n, `r
{
If (A_Index < 2 || A_Index > 10)
Continue
else If !A_LoopField ; Test for "empty" line and skip it
Continue
lst .= A_LoopField . "`n`r"
}
MsgBox, %lst%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment