writeTextFile added.