<?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[Problem beim einlesen großer dateien]]></title><description><![CDATA[<p>Hi,<br />
folgendes Problem...<br />
length enthält bei Dateien von ca 100MB die anzahl an Bytes.<br />
Bei großen Dateien ca. 4GB gibt Datei.tellg() als Rückgabe -1 zurück...<br />
Gibt es da eine Beschränkung von der ich nichts weis oder was mache ich falsch?</p>
<pre><code class="language-cpp">// Natürlich nur ein Code Ausschnitt
Datei.open (dateiname.c_str(), ios::binary | ios::in);

if(Datei.is_open()){
	// File länge bekommen
	Datei.seekg (0, ios::end);
	length = Datei.tellg();
	Datei.seekg (0, ios::beg);

	// Länge ausgeben
	cout &lt;&lt; &quot;Laenge: &quot; &lt;&lt; length &lt;&lt; endl;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/200453/problem-beim-einlesen-großer-dateien</link><generator>RSS for Node</generator><lastBuildDate>Sun, 04 Oct 2026 21:46:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/200453.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Dec 2007 20:32:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem beim einlesen großer dateien on Fri, 14 Dec 2007 20:32:15 GMT]]></title><description><![CDATA[<p>Hi,<br />
folgendes Problem...<br />
length enthält bei Dateien von ca 100MB die anzahl an Bytes.<br />
Bei großen Dateien ca. 4GB gibt Datei.tellg() als Rückgabe -1 zurück...<br />
Gibt es da eine Beschränkung von der ich nichts weis oder was mache ich falsch?</p>
<pre><code class="language-cpp">// Natürlich nur ein Code Ausschnitt
Datei.open (dateiname.c_str(), ios::binary | ios::in);

if(Datei.is_open()){
	// File länge bekommen
	Datei.seekg (0, ios::end);
	length = Datei.tellg();
	Datei.seekg (0, ios::beg);

	// Länge ausgeben
	cout &lt;&lt; &quot;Laenge: &quot; &lt;&lt; length &lt;&lt; endl;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1420773</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1420773</guid><dc:creator><![CDATA[Mitbewohner]]></dc:creator><pubDate>Fri, 14 Dec 2007 20:32:15 GMT</pubDate></item><item><title><![CDATA[Reply to Problem beim einlesen großer dateien on Fri, 14 Dec 2007 20:37:37 GMT]]></title><description><![CDATA[<p>Ach mir isses vielleicht grade selbst eingefallen.<br />
Ist das int einfach zu klein für die Zahl?<br />
Was ist den der größte Integer typ den Visual studio / c++ kennt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1420775</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1420775</guid><dc:creator><![CDATA[Mitbewohner]]></dc:creator><pubDate>Fri, 14 Dec 2007 20:37:37 GMT</pubDate></item><item><title><![CDATA[Reply to Problem beim einlesen großer dateien on Fri, 14 Dec 2007 20:42:27 GMT]]></title><description><![CDATA[<p>GetFileSize(Ex)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1420780</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1420780</guid><dc:creator><![CDATA[winapi]]></dc:creator><pubDate>Fri, 14 Dec 2007 20:42:27 GMT</pubDate></item><item><title><![CDATA[Reply to Problem beim einlesen großer dateien on Fri, 14 Dec 2007 20:51:39 GMT]]></title><description><![CDATA[<p>Mitbewohner schrieb:</p>
<blockquote>
<p>Ist das int einfach zu klein für die Zahl?</p>
</blockquote>
<p>int ist eine vorzeichenbehaftete Zahl, und sollte bei 32Bit Windows 32Bit groß sein (unter Vorbehalt: ich hab mit Windows nichts zu tun). Die Dateigröße von 4GB läßt sich damit nicht darstellen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1420789</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1420789</guid><dc:creator><![CDATA[*john 0]]></dc:creator><pubDate>Fri, 14 Dec 2007 20:51:39 GMT</pubDate></item><item><title><![CDATA[Reply to Problem beim einlesen großer dateien on Fri, 14 Dec 2007 21:44:48 GMT]]></title><description><![CDATA[<p>unsigned lng int<br />
Is jetzt das größte was ich so gefunden habe...</p>
<p>Kann geschlossen werden, danke an alle :xmas2:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1420807</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1420807</guid><dc:creator><![CDATA[Mitbewohner]]></dc:creator><pubDate>Fri, 14 Dec 2007 21:44:48 GMT</pubDate></item><item><title><![CDATA[Reply to Problem beim einlesen großer dateien on Sun, 16 Dec 2007 01:22:09 GMT]]></title><description><![CDATA[<p><a href="http://www.cplusplus.com/reference/iostream/streampos.html" rel="nofollow">http://www.cplusplus.com/reference/iostream/streampos.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1421215</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1421215</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sun, 16 Dec 2007 01:22:09 GMT</pubDate></item></channel></rss>