Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pi@raspberrypi:~/nim $ e test.nim
- 1 import streams
- 2 import parsecfg
- 3
- 4 let filename = "/home/pi/nim/config.ini"
- 5 let file = filename.open()
- 6 let filestream = file.newFileStream()
- 7 var p: CfgParser
- 8 p.open(filestream, filename)
- 9 echo p.filename
- pi@raspberrypi:~/nim $ e test.nim
- pi@raspberrypi:~/nim $ nim-0.17.2/bin/nim c --opt:speed test.nim
- Hint: used config file '/home/pi/nim/nim-0.17.2/config/nim.cfg' [Conf]
- Hint: system [Processing]
- Hint: test [Processing]
- Hint: streams [Processing]
- Hint: parsecfg [Processing]
- Hint: hashes [Processing]
- Hint: strutils [Processing]
- Hint: parseutils [Processing]
- Hint: math [Processing]
- Hint: algorithm [Processing]
- Hint: lexbase [Processing]
- Hint: tables [Processing]
- test.nim(9, 7) Error: undeclared field: 'filename'
Advertisement
Add Comment
Please, Sign In to add comment