I need it so that I can specify in the command line parameters when starting the program which file I want to parse. and only if this file is not specified, then disassemble the file "by default" - next to the lying file

  • If you are given an exhaustive answer, mark it as correct (a daw opposite the selected answer). - Nicolas Chabanovsky

1 answer 1

static void Main(string[] args) { if (args.Length == 0) { var dirPath = AppDomain.CurrentDomain.BaseDirectory; Раобрать_Файл(dirPath + "По_Умолчанию.txt"); } else foreach(string filename in args) Раобрать_Файл(filename); }