rustlings icon indicating copy to clipboard operation
rustlings copied to clipboard

Stdio, Read, Write and Files

Open UsairimIsani opened this issue 5 years ago • 12 comments

Add Exercises on Stdio, Read, Write and Files.

UsairimIsani avatar Jul 29 '20 17:07 UsairimIsani

I can try and take files if that would be okay!

calvinbrown085 avatar Sep 21 '20 18:09 calvinbrown085

I'd like to help close this. What kinds of exercises would we like to see? With @calvinbrown085 's work we have reading from a file (files1). I could see adding something like:

  • Files: files2, writing/amending
  • Stdio: stdio1, capturing user input from stdin and writing it out to stdout

I'd be happy to commit to creating these exercises (as well as any others you folks suggest).

seeplusplus avatar Nov 05 '20 05:11 seeplusplus

IMO, writing a new file would be a good exercise, I also agree that your stdio ones would be good too!

calvinbrown085 avatar Nov 15 '20 15:11 calvinbrown085

May be also these common use case :

  • write to stderr
  • write/append to log file
  • write a utf-8 file
  • write to stream ?

samusz avatar Feb 20 '22 06:02 samusz