<?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[File stream bricht einfach ab...]]></title><description><![CDATA[<p>hi es geht um folgenden Code:</p>
<pre><code>ifstream infile;
	infile.open(&quot;C:\\...\\test.mp3&quot;, ios_base::in);

	char buffer[BLOCKSIZE];
	unsigned int SECTOR, INDEX, X, Y, Z;

	while(!infile.eof()){ 
		for(SECTOR = 0; SECTOR &lt;= 7; SECTOR++){	INDEX = 0;
			for(int i = 0; i&lt;=BLOCKSIZE - 1;i++)
				buffer[i] = 0x00;

			infile.read(buffer, BLOCKSIZE);
			for(Z = 0; Z &lt;= 3; Z++) for(Y = 0; Y &lt;= 3; Y++)	for(X = 0; X &lt;= 3; X++) 
			cube[SECTOR][Z][Y][X] = buffer[INDEX++];}

//Hier wird das &quot;datenpaket&quot; an die nächst höhere instanz weitergeleitet
		state_cipher();
	}
</code></pre>
<p>aber iwie ließt der die datei nicht komplett... es werden nur die ersten paar zeichen eingelesen... und dann hört er auf...</p>
<p>ps. bei plaintext passiert das nicht...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/270444/file-stream-bricht-einfach-ab</link><generator>RSS for Node</generator><lastBuildDate>Sun, 30 Aug 2026 09:20:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/270444.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Jul 2010 18:39:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to File stream bricht einfach ab... on Mon, 12 Jul 2010 18:39:44 GMT]]></title><description><![CDATA[<p>hi es geht um folgenden Code:</p>
<pre><code>ifstream infile;
	infile.open(&quot;C:\\...\\test.mp3&quot;, ios_base::in);

	char buffer[BLOCKSIZE];
	unsigned int SECTOR, INDEX, X, Y, Z;

	while(!infile.eof()){ 
		for(SECTOR = 0; SECTOR &lt;= 7; SECTOR++){	INDEX = 0;
			for(int i = 0; i&lt;=BLOCKSIZE - 1;i++)
				buffer[i] = 0x00;

			infile.read(buffer, BLOCKSIZE);
			for(Z = 0; Z &lt;= 3; Z++) for(Y = 0; Y &lt;= 3; Y++)	for(X = 0; X &lt;= 3; X++) 
			cube[SECTOR][Z][Y][X] = buffer[INDEX++];}

//Hier wird das &quot;datenpaket&quot; an die nächst höhere instanz weitergeleitet
		state_cipher();
	}
</code></pre>
<p>aber iwie ließt der die datei nicht komplett... es werden nur die ersten paar zeichen eingelesen... und dann hört er auf...</p>
<p>ps. bei plaintext passiert das nicht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1925221</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1925221</guid><dc:creator><![CDATA[ich44444]]></dc:creator><pubDate>Mon, 12 Jul 2010 18:39:44 GMT</pubDate></item><item><title><![CDATA[Reply to File stream bricht einfach ab... on Mon, 12 Jul 2010 18:41:28 GMT]]></title><description><![CDATA[<p>Schau dir mal ios::binary an, denn du öffnest die Datei im Plain-Text-Modus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1925222</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1925222</guid><dc:creator><![CDATA[Michael E.]]></dc:creator><pubDate>Mon, 12 Jul 2010 18:41:28 GMT</pubDate></item><item><title><![CDATA[Reply to File stream bricht einfach ab... on Mon, 12 Jul 2010 18:41:32 GMT]]></title><description><![CDATA[<p>aso... weiß jmd was ich falsch gemacht habe?? xDD</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1925223</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1925223</guid><dc:creator><![CDATA[ich44444]]></dc:creator><pubDate>Mon, 12 Jul 2010 18:41:32 GMT</pubDate></item><item><title><![CDATA[Reply to File stream bricht einfach ab... on Mon, 12 Jul 2010 18:43:11 GMT]]></title><description><![CDATA[<p>ah... danke... hat geklappt...<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1925224</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1925224</guid><dc:creator><![CDATA[ich44444]]></dc:creator><pubDate>Mon, 12 Jul 2010 18:43:11 GMT</pubDate></item></channel></rss>