<?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[How do I read specific lines from a txt file  in Qt ?]]></title><description><![CDATA[<p dir="auto">How do I read specific lines from a txt file in Qt ?<br />
Suppose there are ten lines in text file and I have to read only fourth line.</p>
]]></description><link>https://forum.qt.io/topic/142198/how-do-i-read-specific-lines-from-a-txt-file-in-qt</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 15:53:50 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/142198.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Jan 2023 09:32:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How do I read specific lines from a txt file  in Qt ? on Mon, 16 Jan 2023 05:54:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kent-dorfman">@<bdi>Kent-Dorfman</bdi></a> said in <a href="/post/743935">How do I read specific lines from a txt file in Qt ?</a>:</p>
<blockquote>
<p dir="auto">or</p>
<p dir="auto"><strong>head -4 file | tail -1</strong></p>
<p dir="auto">no programming regquired</p>
</blockquote>
<p dir="auto">What is programming?</p>
]]></description><link>https://forum.qt.io/post/743942</link><guid isPermaLink="true">https://forum.qt.io/post/743942</guid><dc:creator><![CDATA[jeremy_k]]></dc:creator><pubDate>Mon, 16 Jan 2023 05:54:06 GMT</pubDate></item><item><title><![CDATA[Reply to How do I read specific lines from a txt file  in Qt ? on Mon, 16 Jan 2023 01:07:59 GMT]]></title><description><![CDATA[<p dir="auto">or</p>
<p dir="auto"><strong>head -4 file | tail -1</strong></p>
<p dir="auto">no programming regquired</p>
<p dir="auto">ROLF</p>
]]></description><link>https://forum.qt.io/post/743935</link><guid isPermaLink="true">https://forum.qt.io/post/743935</guid><dc:creator><![CDATA[Kent-Dorfman]]></dc:creator><pubDate>Mon, 16 Jan 2023 01:07:59 GMT</pubDate></item><item><title><![CDATA[Reply to How do I read specific lines from a txt file  in Qt ? on Sun, 15 Jan 2023 10:34:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pappu-kumar-keshari">@<bdi>Pappu-Kumar-Keshari</bdi></a> said in <a href="/post/743882">How do I read specific lines from a txt file in Qt ?</a>:</p>
<blockquote>
<p dir="auto">Suppose there are ten lines in text file and I have to read only fourth line.</p>
</blockquote>
<p dir="auto">Use <a href="https://doc.qt.io/qt-6/qiodevice.html#readLine-1" target="_blank" rel="noopener noreferrer nofollow ugc">QFile::readLine()</a> until you're at the 4th line.</p>
]]></description><link>https://forum.qt.io/post/743885</link><guid isPermaLink="true">https://forum.qt.io/post/743885</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Sun, 15 Jan 2023 10:34:35 GMT</pubDate></item></channel></rss>