954,499 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

QFile

What does this statement mean
"These functions (read(), readline(), readAll()) read a line of ASCII characters from the device, up to a maximum of maxSize - 1 bytes, stores the characters in data, and returns the number of bytes read."

I have used readAll() and readLine() it returns all the data stored in the file, but the other one doesn't work. The Qt IDE gives errors when i use read(). Why is this so?

What is exactly the difference between them?

C++ programmer
Light Poster
28 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

Depends, what's the error?

gerard4143
Nearly a Posting Maven
2,272 posts since Jan 2008
Reputation Points: 512
Solved Threads: 387
 
thines01
Postaholic
Team Colleague
2,424 posts since Oct 2009
Reputation Points: 445
Solved Threads: 402
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: