title: Saving a file to a network in Qt
body: <p>I need to save a file to my company's network. This needs to be coded into my application not using a File Dialog box or anything. When I save the file without specifying a path it saves it completely fine in the directory that my application is in but when I try to do it the network nothing happens. This is what I have to save it.</p>
  
  <pre><code>QFile outfile;
  outfile.setFileName("//DTPRIMARY/MyFile.htm");
  outfile.open(QIODevice::WriteOnly);
  QTextStream out(&amp;outfile);
  out &lt;&lt; textEdit-&gt;toHtml();
  out.flush();
  outfile.close();
  </code></pre>
  
  <p>I actually want to save it here <code>\\DTPRIMARY\Inetpub\wwwroot</code> but took out the other folders thinkging that could have been part of the problem but it wasn't. And I'm using '/'s instead of '\'s because thats what a few places said to do (I've never really understood why file paths have to use '\' or '/' though so it could be wrong idk.)</p>
  
  <p>Does anyone know how to do this/what's wrong with my code?</p>