Try this:
Qt Code:
{ if(myfile.exists()) { qDebug()<<my_buffer; myfile.close(); } } }To copy to clipboard, switch view to plain text mode
Using readAll() is not recommended unless you can assert that the size of the read files is not very large.
Try this:
Qt Code:
{ if(myfile.exists()) { qDebug()<<my_buffer; myfile.close(); } } }To copy to clipboard, switch view to plain text mode
Using readAll() is not recommended unless you can assert that the size of the read files is not very large.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks