<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: C Tutorial &#8211; Searching for Strings in a Text File</title>
	<atom:link href="http://www.codingunit.com/c-tutorial-searching-for-strings-in-a-text-file/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codingunit.com/c-tutorial-searching-for-strings-in-a-text-file</link>
	<description>CodingUnit is your online resource for learning to program. Tutorials on C, C++, PHP, Python, MySQL, Java, JQuery, Opengl, DirectX and much more!</description>
	<lastBuildDate>Mon, 06 Feb 2012 06:08:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Greg</title>
		<link>http://www.codingunit.com/c-tutorial-searching-for-strings-in-a-text-file/comment-page-1#comment-3840</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Tue, 11 Oct 2011 00:39:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.codingunit.com/?p=1038#comment-3840</guid>
		<description>Okay, so that is all well and good, but:
If there is more than one occurrence on the same line, i.e. if the file to be read is a .c file, and a function prototype as follows: int function(int alpha, int omega); ... The code above would simply return one occurrence. Any ideas on a solution for that?
Thanks</description>
		<content:encoded><![CDATA[<p>Okay, so that is all well and good, but:<br />
If there is more than one occurrence on the same line, i.e. if the file to be read is a .c file, and a function prototype as follows: int function(int alpha, int omega); &#8230; The code above would simply return one occurrence. Any ideas on a solution for that?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeeko</title>
		<link>http://www.codingunit.com/c-tutorial-searching-for-strings-in-a-text-file/comment-page-1#comment-3454</link>
		<dc:creator>jeeko</dc:creator>
		<pubDate>Thu, 26 May 2011 08:53:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.codingunit.com/?p=1038#comment-3454</guid>
		<description>useful tutorial</description>
		<content:encoded><![CDATA[<p>useful tutorial</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SB</title>
		<link>http://www.codingunit.com/c-tutorial-searching-for-strings-in-a-text-file/comment-page-1#comment-3350</link>
		<dc:creator>SB</dc:creator>
		<pubDate>Tue, 05 Apr 2011 12:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.codingunit.com/?p=1038#comment-3350</guid>
		<description>Very good and simple tutorail to quickly understand. good job.</description>
		<content:encoded><![CDATA[<p>Very good and simple tutorail to quickly understand. good job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.codingunit.com/c-tutorial-searching-for-strings-in-a-text-file/comment-page-1#comment-967</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 17 Jun 2010 19:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.codingunit.com/?p=1038#comment-967</guid>
		<description>To find a string of multiple words you can do the following (on windows tested):

c:\project\debug\main.exe test.txt &quot;simply dummy text&quot;
A match found on line: 1
Lorum Ipsum is simply dummy text of ......etc

So put your string between &quot;&quot; , like &quot;your search text&quot; and it groups the words as one string.</description>
		<content:encoded><![CDATA[<p>To find a string of multiple words you can do the following (on windows tested):</p>
<p>c:\project\debug\main.exe test.txt &#8220;simply dummy text&#8221;<br />
A match found on line: 1<br />
Lorum Ipsum is simply dummy text of &#8230;&#8230;etc</p>
<p>So put your string between &#8220;&#8221; , like &#8220;your search text&#8221; and it groups the words as one string.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: reta</title>
		<link>http://www.codingunit.com/c-tutorial-searching-for-strings-in-a-text-file/comment-page-1#comment-966</link>
		<dc:creator>reta</dc:creator>
		<pubDate>Thu, 17 Jun 2010 17:14:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.codingunit.com/?p=1038#comment-966</guid>
		<description>hi again
how can develope this code to search the whole string not part of it
for example to search &quot;desktop publishing software&quot;
the output must match the whole sentence not only &#039;desktop&quot; or &quot;software&quot; ...</description>
		<content:encoded><![CDATA[<p>hi again<br />
how can develope this code to search the whole string not part of it<br />
for example to search &#8220;desktop publishing software&#8221;<br />
the output must match the whole sentence not only &#8216;desktop&#8221; or &#8220;software&#8221; &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: reta</title>
		<link>http://www.codingunit.com/c-tutorial-searching-for-strings-in-a-text-file/comment-page-1#comment-965</link>
		<dc:creator>reta</dc:creator>
		<pubDate>Wed, 16 Jun 2010 20:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.codingunit.com/?p=1038#comment-965</guid>
		<description>Thank you very much this is very good tutorial it is help me</description>
		<content:encoded><![CDATA[<p>Thank you very much this is very good tutorial it is help me</p>
]]></content:encoded>
	</item>
</channel>
</rss>

