Initial import
This commit is contained in:
commit
405b86068e
324 changed files with 163599 additions and 0 deletions
15
tests/treadln.nim
Executable file
15
tests/treadln.nim
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
# test the improved readline handling that does not care whether its
|
||||
# Macintosh, Unix or Windows text format.
|
||||
|
||||
import
|
||||
io
|
||||
|
||||
var
|
||||
inp: tTextFile
|
||||
line: string
|
||||
|
||||
if openFile(inp, "readme.txt"):
|
||||
while not EndOfFile(inp):
|
||||
line = readLine(inp)
|
||||
echo("#" & line & "#")
|
||||
closeFile(inp)
|
||||
Loading…
Add table
Add a link
Reference in a new issue