<?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[Rookie-Problem mit ifstream - URL&#x27;s können nicht gelesen werden]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich versuche mit einem C++ Sript ein beliebige Datei aus dem Internet anzuzeigen. Leider klappt das mit &quot;meinem&quot; Script nicht:</p>
<p>// reading a text file<br />
#include &lt;iostream&gt;<br />
#include &lt;fstream&gt;<br />
#include &lt;string&gt;<br />
using namespace std;</p>
<p>int main () {<br />
string line;<br />
ifstream myfile (&quot;<a href="http://www.google.de" rel="nofollow">http://www.google.de</a>&quot;);<br />
if (myfile.is_open())<br />
{<br />
while (! myfile.eof() )<br />
{<br />
getline (myfile,line);<br />
cout &lt;&lt; line &lt;&lt; endl;<br />
}<br />
myfile.close();<br />
}</p>
<p>else cout &lt;&lt; &quot;Unable to open file&quot;;</p>
<p>return 0;<br />
}</p>
<p>Weiß jemand wie man das zum Laufen kriegt?</p>
<p>Vielen Dank, Viele Grüße<br />
Ben</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/162709/rookie-problem-mit-ifstream-url-s-können-nicht-gelesen-werden</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 16:46:00 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/162709.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 22 Oct 2006 11:57:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Rookie-Problem mit ifstream - URL&#x27;s können nicht gelesen werden on Sun, 22 Oct 2006 11:57:26 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich versuche mit einem C++ Sript ein beliebige Datei aus dem Internet anzuzeigen. Leider klappt das mit &quot;meinem&quot; Script nicht:</p>
<p>// reading a text file<br />
#include &lt;iostream&gt;<br />
#include &lt;fstream&gt;<br />
#include &lt;string&gt;<br />
using namespace std;</p>
<p>int main () {<br />
string line;<br />
ifstream myfile (&quot;<a href="http://www.google.de" rel="nofollow">http://www.google.de</a>&quot;);<br />
if (myfile.is_open())<br />
{<br />
while (! myfile.eof() )<br />
{<br />
getline (myfile,line);<br />
cout &lt;&lt; line &lt;&lt; endl;<br />
}<br />
myfile.close();<br />
}</p>
<p>else cout &lt;&lt; &quot;Unable to open file&quot;;</p>
<p>return 0;<br />
}</p>
<p>Weiß jemand wie man das zum Laufen kriegt?</p>
<p>Vielen Dank, Viele Grüße<br />
Ben</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1159014</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1159014</guid><dc:creator><![CDATA[Ben1]]></dc:creator><pubDate>Sun, 22 Oct 2006 11:57:26 GMT</pubDate></item><item><title><![CDATA[Reply to Rookie-Problem mit ifstream - URL&#x27;s können nicht gelesen werden on Sun, 22 Oct 2006 11:58:24 GMT]]></title><description><![CDATA[<p>ey sowas geht nur in php. in c++ ist das viel kompilizierter.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1159015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1159015</guid><dc:creator><![CDATA[$]]></dc:creator><pubDate>Sun, 22 Oct 2006 11:58:24 GMT</pubDate></item><item><title><![CDATA[Reply to Rookie-Problem mit ifstream - URL&#x27;s können nicht gelesen werden on Sun, 22 Oct 2006 12:08:04 GMT]]></title><description><![CDATA[<p><a href="http://rrette.com/curlpp.html" rel="nofollow">http://rrette.com/curlpp.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1159018</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1159018</guid><dc:creator><![CDATA[nman]]></dc:creator><pubDate>Sun, 22 Oct 2006 12:08:04 GMT</pubDate></item></channel></rss>