Begin generating files and added Generated folder to .gitignore.
Ensure files are opened and truncated and removed explicit close call.