How can I read a file in, compile, and execute it at run time
===

I  am eager to know how to read a file in, compile, and execute it at run time.

Basically i am trying to understand internals of a online compiler.