I display whole .txt file:
but I would like to display last 20 lines or next to last 20 lines. How can I achive this?Qt Code:
fp.open(IO_ReadOnly); while (!fp.atEnd() ) { fp.readLine(buff, sizeof(buff)); textEdit->append(buff); } fp.close();To copy to clipboard, switch view to plain text mode


Reply With Quote


For instance if the whole file contained only a single line.

Bookmarks