GetFileLines(ByRef OutputVar,FileLocation) {
FileRead, File, % FileLocation
StringSplit, Lines, File, `n
OutputVar := Lines0
}
GetFileLines(TotalLines,"YourTextFile.txt")
MsgBox YourTextFile.txt has %TotalLines% lines!
GetFileLines(ByRef OutputVar,FileLocation) {
FileRead, File, % FileLocation
StringSplit, Lines, File, `n
OutputVar := Lines0
}
GetFileLines(TotalLines,"YourTextFile.txt")
MsgBox YourTextFile.txt has %TotalLines% lines!
No comments:
Post a Comment