I want to know if there is a way it's possible to run
csharp code from a .txt file without having to recompile
it.

C# always has to be compiled, but there are classes available to let
you compile extra code into an assembly while your program is running.
See Snippy for a simple example of this: http://csharpindepth.com/Downloads..aspx