Even though this is just a simple example it's probably not a good idea to not close the streams correctly.