WriteAllToFile