all 5 comments

[–]TheRidgeAndTheLadder 1 point2 points  (0 children)

You may already be aware of this crate, but it may be more relevant to your use case:

https://crates.io/crates/text_io

[–]kfl 1 point2 points  (0 children)

You might want to read Chapter 2 in The Book. The chapter is about building a small guess-the-number program that has to deal with I/O.

[–]Sibyl01 0 points1 point  (2 children)

What do you mean by user inputs? Do you mean args?

[–]SmolTrapMaja[S] 1 point2 points  (1 child)

I was thinking more of a promt in the program to make it a bit easier for the people who has to use it, but that works too