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?

Recommended Answers

All 2 Replies

Depends, what's the error?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.