We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,371 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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?

3
Contributors
2
Replies
4 Days
Discussion Span
1 Year Ago
Last Updated
3
Views
C++ programmer
Light Poster
28 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Depends, what's the error?

gerard4143
Nearly a Posting Maven
2,295 posts since Jan 2008
Reputation Points: 512
Solved Threads: 397
Skill Endorsements: 0
thines01
Postaholic
Team Colleague
2,433 posts since Oct 2009
Reputation Points: 447
Solved Threads: 408
Skill Endorsements: 7

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0798 seconds using 2.68MB