Generate a .txt file based on custom requirements.