Minor cosmetic fixes for existing samples
File write + read contents example
Redirect output example
create a directory structure randomly