Basic I/O example

This is a small project, created years ago, but I improved the code for readability and stability. See on Hackster.io