<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Reading large files]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm trying to read a big file in my program. My application has a loop where it reads the file file through the QTextStream class. At the begining it works well but after 30 seconds it starts to go slower.</p>
<p dir="auto">I've read that the QTextStream class is buffered and it's not aimed for reading large files but I haven't found more information. So, what's the most efficient way of reading large files in Qt?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.qt.io/topic/42597/reading-large-files</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 20:59:51 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/42597.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Jun 2014 00:37:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Reading large files on Tue, 17 Jun 2014 01:31:54 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Is it a text file or a binary file?</p>
<p dir="auto">You could use QFile::read() to read a specific number of bytes/characters, or QFile::readLine() to read a whole line of text. These reads are not buffered.</p>
<p dir="auto">Documentation:</p>
<ul>
<li><a href="http://qt-project.org/doc/qt-5/QFile.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5/QFile.html</a></li>
<li><a href="http://qt-project.org/doc/qt-5/QIODevice.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5/QIODevice.html</a></li>
</ul>
]]></description><link>https://forum.qt.io/post/232147</link><guid isPermaLink="true">https://forum.qt.io/post/232147</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Tue, 17 Jun 2014 01:31:54 GMT</pubDate></item></channel></rss>