Moved file writing function to text.py