Like this:
import strutils
macro r: untyped =
for l in "input".slurp.splitLines:
# process a line
echo l
r()
Run
- Reading a file line by line at compile time jyapayne
- Re: Reading a file line by line at compile time gemath
