Use a notes app or a file manager like the ZArchiver app on Android to create a new file. 2. Create the ZIP File
Use the zipfile module to write a string directly into a zip without saving the text file to your hard drive first.
Use System.IO.Compression.ZipArchive to create the file and return it to a user for download.
If you are trying to automate this process "as a text" (scripting), here are common methods:
Right-click in a folder or on your desktop, select New , and then click Text Document . Name it Cbaoddq.txt .