Possible Duplicate:
Can a program output a copy of itself
Could someone write a program that print the exactly code of the program
Possible Duplicate:
Can a program output a copy of itself
Could someone write a program that print the exactly code of the program
http://www.nyx.net/~gthompso/quine.htm
This is probably what you are looking for.