This is just the job of the compiler.But will you please tell me how will the source code be build??if we are making the source code for the 1st time.That means during compilation there's no .obj file on hard disk!
No. You are heading in the wrong direction. To begin with, the object code is different from the source code.the object file that doesn't exist at all..can we assign it's address to some file pointer?
Then you either write a true quine that prints its own source code without any file I/O at all, or you simply provide a copy of the source file along with the program, and read from that file.It will do if it's not following the rules. I just want to do the job of printing the source code..