https://www.codemantra99.com/2025/04/append-text-to-existing-text-file-cnet.html