Hi All,
Code:
int main(int argc, char *argv[])
{
   if (argc >1 )
  {
   //if there is an argument  - take a name from it.
     inifile = argv[1];
   }
   else
   {
      //default name
       inifile = "Settings.ini";
   }

 //and so on.....
The problem is - the program always takes default name.
Even if i type MyProg.exe test.ini - it takes default file - Settings.ini