I am wondering if it is possible in HTML, Javascript, (or something related) for a program to do any of the following: 1. alter its own source code (not during run-time, but upon exiting) 2. alter the source code of another document/program 3. create or delete another document/program Thanks!
YES its possible ask yourself WHY you want to do such then if good reason learn howto so far it sounds very much like hacker question howto destroy site / pages .. if you have good and valid reason to accomplish above on your own site / server then you also find the time to learn proper coding / google to find solution.
what program are you using to 'edit' your code? Many programs like Dreamweaver or NVU, Microsoft Expression web, Frontpage, they will mess with your code. If you use software like jEdit or notepad++ or TextMate they will not alter anything you type.
Hey guys, thanks for the reply. Hans: funny! I'm not planning any hacking or destruction... I'm experimenting with some cryptography ideas and mathematics, limited to the confines of my home computer. In terms of google, as you suggest, I was just hoping for some pointers on terminology to search with. Tom: I've been starting from scratch with a basic plain-text application, because as you say, it lets me do what I want.