title: How do I open a file with the default text editor?
body: <p>I want to open a *.conf file. I want to open this file with the standard Windows editor (e.g., notepad.exe).</p>
  
  <p>I currently have this ShellExecute code:</p>
  
  <pre><code>var
    sPath, conf: String;
  begin
    try
    sPath := GetCurrentDir + '\conf\';
    conf := 'nginx.conf';
  ShellExecute(Application.Handle, 'open', PChar(conf), '', Pchar(sPath+conf), SW_SHOW);
    except
      ShowMessage('Invalid config path.');
    end;
  end; 
  </code></pre>
  
  <p>But nothing happens. So what should I change?</p>