Modularisation: Moved writeFileToOS() to fileManager #12