This is totally untested because of emulator failure, but it should work.
Merge pull request #1 from MarcoGiancarli/basicIO

This is totally untested because of emulator failure, but it should work...