Are there a way to make a program in C to write a code in a text file , then read the code and execute it ?

Update: I want to write a program that can write a code on text.Then read it and execute it.
I'm still learning so pardon my ignorance.
7 answers 7