<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=482580118-14012005>I am trying to add
configuration options to the ASCII datasource, which leads to quite a lot of
changes to account for all the new options. Some of the changes regard how
we read/parse the data file. As I'm not a specialist I must confess I wonder
what the differences are between the 3 methods QTextStream::readLine(),
QFile::ReadBlock() and QFile::ReadLine(). Of course, I understand the
differences wrt to how to use them, but it's not clear to me what their relative
performance is. Could someone help me understand why there are so many lines
in ascii.cpp (readField() method) to just detect where the new data
lines start when it would be much easier to e.g. just use a QTextStream to read
the file line by line and discard lines beginning with one of the comment
delimiters ? </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=482580118-14012005>Another question I
have is whether there are other ways of reading directly from a given point in
the file other than QFile::at() (e.g. with a QTextStream) ?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=482580118-14012005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=482580118-14012005>Thanks for your help
:-)</SPAN></FONT></DIV></BODY></HTML>