title: Qt : Write in file
body: <p>I'm learning how QT is working. I have this little code :</p>
  
  <pre><code>QApplication app(argc, argv);
  QWidget fenetre;
  fenetre.setFixedWidth(400);
  fenetre.setFixedHeight(400);
  
  QPushButton *bouton = new QPushButton("Quit", &amp;fenetre);
  bouton-&gt;setFixedHeight(50);
  bouton-&gt;setFixedWidth(100);
  bouton-&gt;move(170,310);
  
  
  QLabel *label = new QLabel("Something", &amp;fenetre);
  label-&gt;move(30,200);
  QLineEdit *line = new QLineEdit(&amp;fenetre);
  line-&gt;move(200,200);
  
  QWidget::connect(bouton, SIGNAL(clicked()),qApp, SLOT(quit()));
  
  fenetre.show();
  </code></pre>
  
  <p>I'm wondering how could I put the content of <code>QLineEdit</code> label in a file (.txt) continuously.
  The goal is to keep what the user put in the <code>QLineEdit</code> box in a text file when the program is finished.</p>
  
  <p>Thanks</p>