It all really depends what your H3LTON executable does.
- Is it something that runs commands interactlively like a python shell? If that should be the case I'd work it so that the
System.Diagnostic.Process
is run with input stream redirection. The input stream would then be a System.IO.StreamReader[^] that would be fed from the string content of your TextBox. - If your executable can read a program from a file. Just write the content of the TextBox to a file and call your H3LTON executable with the filename as the parameter.
- If you can specify commands directly as a command line parameter you can also do that, but you should know that the total length of the command line is limited. I'm not quite sure where that limit is right now, but there is one which might cripple the functionality of your setup if somebody entered a real big program into that TextBox.
So which ever method you choose you should be aware of what exactly you are trying to achieve and the benefits and drawbacks of each solution. Saving the code into an intermediate file with a constantly changing temporary filename has the advantage that all the programs a user entered will not be lost until the temporary storage space is cleard. This could be considered a feature :).
Regards,
Manfred