title: Append DataVizualisation Chart Control to text file
body: <p>I'm developing a system that takes data input from textboxes, and on a button click, saves these values to the respective <code>listbox</code> ready to be written to a text file once the process is complete.</p>
  
  <p>The next stage has been using this data to create graphs, which has gone successfully but I'm now looking for a way to add these onto the end of my text file so it's all included in one place.
  I originally tried it like this (included in the total 'saveToFile' function):</p>
  
  <pre><code>        consoleFile.WriteLine(chartBP.Text); //chart title
          chartBP.SaveImage((fileName), System.Drawing.Imaging.ImageFormat.Jpeg);
          consoleFile.WriteLine("\n\n");
  </code></pre>
  
  <p>This appeared to work ok but threw a run-time error stating that the file could not be accessed because it was being used by another process.</p>
  
  <p>I don't think I'm far off where I need to be, but I don't have enough experience with charts to know what to try next.
  Does anyone have any idea how to make this work, or another method that wouldn't produce the error?
  Any help is greatly appreciated!</p>