08-14-2022, 05:15 AM
Hi,
It would be much more convenient if QM3 could support CMD characters
CMD symbols, used only when testing in the QM3 editor, Invalid when passing arguments through the command line
#if !CMD
#endif
Linqpad supports this format
It would be much more convenient if QM3 could support CMD characters
CMD symbols, used only when testing in the QM3 editor, Invalid when passing arguments through the command line
#if !CMD
#endif
Linqpad supports this format
C# code:
void Main(string[] args) {
#if !CMD
args = new[] {
@"C:\Users\Administrator\Desktop\hello.txt",
"hello, world!"
};
#endif
string file = args[0];
string text = args[1];
File.WriteAllText(file, text);
}