This kind of thing may have been asked before but I am going to try and ask it anyways. (brand new to nim but understand the similarities to python)
For some reason and idk why, whenever I try to use stdin I get the following error when compiling: Error: cannot open file: stdin, I am also importing it like usual import stdin. I'm not sure how to fix this.
Nim version - v2.0.0 Installed via choosenim (curl https://nim-lang.org/choosenim/init.sh -sSf | sh) followed by choosenim update stable and adding export PATH=/home/ori/.nimble/bin:$PATH to my .zshrc file (I use zsh instead of bash.) Everything in terms of configs and anything else would be default.
Any help on how to fix this isuse? (I can import other things like import strutils, sequtils and import std/strformat)
Extra note;
If this is the wrong category then I'm sorry and can move this to the appropriate category in which you say.
Answer provided by @bung8954 on discord.
"stdin {.importc: "stdin", header: "<stdio.h>".}: File it is located in std/syncio module"
Just do import std/syncio and then you can use stdin.readline()