<?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[Datei im Internet prüfen]]></title><description><![CDATA[<p>Hallo liebe Leute!</p>
<p>Ich brauche mal eure Hilfe.</p>
<p>Ich wollte die Datei.txt (auf einem FTP) auf einem bestimmtes Word überprüfen.<br />
Wenn das Wort nicht das richtige sein sollte, kommt ein Error.</p>
<p>Zurzeit habe ich folgenden Code</p>
<pre><code>DWORD dwRead;
    char szBuffer[512];
    HINTERNET hINet, hFile;   
    hINet = InternetOpen(&quot;ZEiT&quot;, INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0);
    if(!hINet)
	{
        pIp = &quot;0.0.0.0&quot;;
        return 1;
    }
    hFile = InternetOpenUrl(hINet, &quot;http://checkip.dyndns.org&quot;, NULL, 0, 0, 0);
    if(hFile)
	{
        InternetReadFile(hFile, szBuffer, sizeof(szBuffer) - 1, &amp;dwRead);
        sscanf(szBuffer, &quot;&lt;html&gt;&lt;head&gt;&lt;title&gt;Current IP Check&lt;/title&gt;&lt;/head&gt;&lt;body&gt;Current IP Address: %[^&lt;]&quot;, pIp);
    }
    else
	{
        pIp = &quot;0.0.0.0&quot;;
        InternetCloseHandle(hINet);
        return 1;
    }
    return 0;
</code></pre>
<p>Dieser Code liest die Online IP aus. Den wollte ich jetzt so umändern, das er die Datei.txt im Inet nach einem bestimmten String (&quot;okay&quot;) absucht, aber ohne diese Datei gleich runterladen zu müssen.</p>
<p>Ich hoffe mir kann jemand helfen, den Code dementsprechend umzuändern.</p>
<p>Danke schonmal!</p>
<p>MfG winapi</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/235542/datei-im-internet-prüfen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 02:39:30 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/235542.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Mar 2009 14:50:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Datei im Internet prüfen on Tue, 03 Mar 2009 14:50:03 GMT]]></title><description><![CDATA[<p>Hallo liebe Leute!</p>
<p>Ich brauche mal eure Hilfe.</p>
<p>Ich wollte die Datei.txt (auf einem FTP) auf einem bestimmtes Word überprüfen.<br />
Wenn das Wort nicht das richtige sein sollte, kommt ein Error.</p>
<p>Zurzeit habe ich folgenden Code</p>
<pre><code>DWORD dwRead;
    char szBuffer[512];
    HINTERNET hINet, hFile;   
    hINet = InternetOpen(&quot;ZEiT&quot;, INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0);
    if(!hINet)
	{
        pIp = &quot;0.0.0.0&quot;;
        return 1;
    }
    hFile = InternetOpenUrl(hINet, &quot;http://checkip.dyndns.org&quot;, NULL, 0, 0, 0);
    if(hFile)
	{
        InternetReadFile(hFile, szBuffer, sizeof(szBuffer) - 1, &amp;dwRead);
        sscanf(szBuffer, &quot;&lt;html&gt;&lt;head&gt;&lt;title&gt;Current IP Check&lt;/title&gt;&lt;/head&gt;&lt;body&gt;Current IP Address: %[^&lt;]&quot;, pIp);
    }
    else
	{
        pIp = &quot;0.0.0.0&quot;;
        InternetCloseHandle(hINet);
        return 1;
    }
    return 0;
</code></pre>
<p>Dieser Code liest die Online IP aus. Den wollte ich jetzt so umändern, das er die Datei.txt im Inet nach einem bestimmten String (&quot;okay&quot;) absucht, aber ohne diese Datei gleich runterladen zu müssen.</p>
<p>Ich hoffe mir kann jemand helfen, den Code dementsprechend umzuändern.</p>
<p>Danke schonmal!</p>
<p>MfG winapi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1673516</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1673516</guid><dc:creator><![CDATA[winapi]]></dc:creator><pubDate>Tue, 03 Mar 2009 14:50:03 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Internet prüfen on Tue, 03 Mar 2009 18:10:41 GMT]]></title><description><![CDATA[<p>Das geht nicht... Woher soll das Programm wissen, was in der Datei steht, wenn es sie nicht herunterlädt? Du könntest dir höchstens ein server-seitiges Script schreiben, das nach dem Wort sucht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1673618</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1673618</guid><dc:creator><![CDATA[devkid]]></dc:creator><pubDate>Tue, 03 Mar 2009 18:10:41 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Internet prüfen on Wed, 04 Mar 2009 12:17:56 GMT]]></title><description><![CDATA[<p>Okay, dann werde ich die Datei wohl immer runterladen müssen und nach dem Check löschen.</p>
<p>Löschen war doch mit DeleteFile(&quot;bla.txt&quot;) oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674069</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674069</guid><dc:creator><![CDATA[winapi]]></dc:creator><pubDate>Wed, 04 Mar 2009 12:17:56 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Internet prüfen on Wed, 04 Mar 2009 14:39:02 GMT]]></title><description><![CDATA[<p><a href="http://www.igooglethatforyou.com/?q=c%2B%2B+datei+l%F6schen" rel="nofollow">http://www.igooglethatforyou.com/?q=c%2B%2B+datei+l%F6schen</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674175</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674175</guid><dc:creator><![CDATA[Kóyaánasqatsi]]></dc:creator><pubDate>Wed, 04 Mar 2009 14:39:02 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Internet prüfen on Sat, 07 Mar 2009 11:46:48 GMT]]></title><description><![CDATA[<p>Win32 FAQ =&gt;<br />
siehe in der fortgeschrittenen Gruppe win32<br />
news://nntp.aioe.org/comp.os.ms-windows.programmer.win32</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1675639</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1675639</guid><dc:creator><![CDATA[fred100]]></dc:creator><pubDate>Sat, 07 Mar 2009 11:46:48 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Internet prüfen on Sat, 07 Mar 2009 20:50:36 GMT]]></title><description><![CDATA[<p>fred100 schrieb:</p>
<blockquote>
<p>siehe in der fortgeschrittenen Gruppe win32<br />
news://nntp.aioe.org/comp.os.ms-windows.programmer.win32</p>
</blockquote>
<p>Wir sind hier bereits in einem WinAPI-Forum und die Frage wurde beantwortet. Warum verweist du ihn auf eine Mail-List? Und ich sehe grad dass du das bei jedem deiner Posts gemacht hast; wäre nett, wenn du das lassen könntest...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1675863</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1675863</guid><dc:creator><![CDATA[devkid]]></dc:creator><pubDate>Sat, 07 Mar 2009 20:50:36 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Internet prüfen on Sun, 08 Mar 2009 11:41:54 GMT]]></title><description><![CDATA[<p>comp.os.ms-windows.programmer.win32 ist keine Mailing Liste. Das ist ein NNTP Forum!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1676048</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1676048</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sun, 08 Mar 2009 11:41:54 GMT</pubDate></item><item><title><![CDATA[Reply to Datei im Internet prüfen on Sun, 08 Mar 2009 14:15:59 GMT]]></title><description><![CDATA[<p>Martin Richter schrieb:</p>
<blockquote>
<p>comp.os.ms-windows.programmer.win32 ist keine Mailing Liste. Das ist ein NNTP Forum!</p>
</blockquote>
<p>Okay, dann hab ich das wohl verwechselt; ändert aber nichts daran.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1676130</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1676130</guid><dc:creator><![CDATA[devkid]]></dc:creator><pubDate>Sun, 08 Mar 2009 14:15:59 GMT</pubDate></item></channel></rss>