RosettaCodeData/Task/Flow-control-structures/Nim/flow-control-structures-2.nim
2023-07-01 13:44:08 -04:00

7 lines
114 B
Nim

var f = open "input.txt"
try:
var s = readLine f
except IOError:
echo "An error occurred!"
finally:
close f