Qt Code:
  1. QTextStream stream(&serverList);
  2. stream << document.toString();
  3. serverList.close();
To copy to clipboard, switch view to plain text mode 

how can i get it to overwrite the file and not append to it