You have a task from your boss: he writes a word to the console, you should read it, create a file, and name it by that word. Then you need to write one string into your file: "I've done it!"
Your boss started writing the function doTask(), but parts of the code are in the wrong order. Please correct it.