summary refs log tree commit diff stats
path: root/tests/stdlib/tmemlinesBuf.nim
blob: ea607525d5a46095705016913e39c7bd10e0f9e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
discard """
output: "15"
disabled: "appveyor"
"""

import memfiles
var inp = memfiles.open("tests/stdlib/tmemlinesBuf.nim")
var buffer: string = ""
var lineCount = 0
for line in lines(inp, buffer):
  lineCount += 1

close(inp)

echo lineCount