First of all, I know it is not a text file but that might help you running C# codes from a file.
What you might want to do is create a .bat file. And then execute this file.
Creta a bat file to run C# Code[
^]
For running the bat file here is the code;
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = fileName;
proc.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
proc.StartInfo.CreateNoWindow = true;
proc.Start();
proc.WaitForExit();
Basically this will do it tho;
System.Diagnostics.Process.Start(@"C:\listfiles.bat");