<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
when i use the following method to save a text file, it chops off the first
line.  i am reading into lineData all of the text from the current
QMultiLineEdit window.  any ideas what is wrong?
<p>bool WalTeKDoc::saveDocument(const QString &filename, const char
*format /*=0*/)
<br>{
<br>  QFile file(filename);
<br>  if (!file.open(IO_WriteOnly))
<br>    return false;
<br>  QString lineData;
<br>  char *s;
<br>  QDataStream out(&file);
<br>  lineData = (pViewList->current())->text();
<br>  out << lineData;
<br>  file.close();
<br>  modified=false;
<br>  return true;
<br>}
<pre>-- 

"What? Is man merely a mistake of God's? Or God merely a mistake of man's?
 -Nietzsche</pre>
 </html>