I am writing a wpf application which should draw lines due points given in a file.
How can I pass a file in the command line to my c# program? For example something like
MyProgram.exe < file.txt
In addition how can I do this in visual studio for debugging? I know I can set command line args and can read them with
var args = System.Environment.GetCommandLineArgs().ToList();