<?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: Java program that displays the number of characters, lines and words in a text file	</title>
	<atom:link href="https://studentprojects.in/software-development/java/java-programs/basic/java-program-that-displays-the-number-of-characters-lines-and-words-in-a-text-file/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-that-displays-the-number-of-characters-lines-and-words-in-a-text-file/</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Fri, 11 Apr 2014 01:11:50 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>
		By: Raj Kumar Sharma		</title>
		<link>https://studentprojects.in/software-development/java/java-programs/basic/java-program-that-displays-the-number-of-characters-lines-and-words-in-a-text-file/comment-page-1/#comment-10511</link>

		<dc:creator><![CDATA[Raj Kumar Sharma]]></dc:creator>
		<pubDate>Fri, 11 Apr 2014 01:11:50 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=867#comment-10511</guid>

					<description><![CDATA[Replace the wc() function by this-

public static void wc(InputStreamReader isr)throws IOException { 
		int c=0; 
		boolean lastwhite=true; 
		while((c=isr.read())!=-1) {  
			if(c==&#039;\n&#039;) 
			{	lines++; ++words; }
			else
				if(c!=&#039;\r&#039;)chars++;
			if(c==&#039;\t&#039; &#124;&#124; c==&#039; &#039;) 
				++words; 
		}
		if(chars&#062;0) { words++; lines++; }
	}]]></description>
			<content:encoded><![CDATA[<p>Replace the wc() function by this-</p>
<p>public static void wc(InputStreamReader isr)throws IOException {<br />
		int c=0;<br />
		boolean lastwhite=true;<br />
		while((c=isr.read())!=-1) {<br />
			if(c==&#8217;\n&#8217;)<br />
			{	lines++; ++words; }<br />
			else<br />
				if(c!=&#8217;\r&#8217;)chars++;<br />
			if(c==&#8217;\t&#8217; || c==&#8217; &#8216;)<br />
				++words;<br />
		}<br />
		if(chars&gt;0) { words++; lines++; }<br />
	}</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
