Hi,
I am trying to read from a file using readLine function. This is my code.
QFile file("tempfile");
if (!file.open(QIODevice::ReadOnly ))
{
return;
}
while (!file.atEnd())
{
QString line = file.readLine();
qWarning(line.toAscii());
}
But some characters in the read line is not printing like " ' " as it is . For example if the actual file content is this
str_cpy.c: In function ‘str_cpy’:
It is read and printed as
In function âstr_cpyâ:
What can I do to print these lines like the file content itself. What am I missing here.
Jayanth.S
Bookmarks