title: SaveLayoutToStream. Error: Could not find part of the path "c: \ TreeListLayout \"
body: <p>I try to run an example - <a href="https://documentation.devexpress.com/WindowsForms/DevExpress.XtraTreeList.TreeList.SaveLayoutToStream.method(S1oTsg)" rel="nofollow noreferrer">link</a><br>
  User - admin<br>
  Scenario:<br>
    - I expand the treelist node;<br>
    - I execute the "SaveLayoutToStream_mtd ()" method;  </p>
  
  <p>I get in line</p>
  
  <pre><code>System.IO.FileStream outFile = new System.IO.FileStream(fileName, System.IO.FileMode.Create);
  </code></pre>
  
  <p>an error  </p>
  
  <blockquote>
    <p>System.IO.DirectoryNotFoundException: "Could not find part of the
    path" c: \ TreeListLayout \ "."</p>
  </blockquote>
  
  <p>all code</p>
  
  <pre><code>string fileName = @"c:\TreeListLayout\";
  public void SaveLayoutToStream_mtd()
  {            
      System.IO.FileStream outFile = new System.IO.FileStream(fileName, System.IO.FileMode.Create);
      treeList1.SaveLayoutToStream(outFile);
      outFile.Close();
  }
  </code></pre>
  
  <p>How to fix the error?</p>