<?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# Read Text File Line-by-Line</title>
	<atom:link href="http://www.csharp411.com/c-read-text-file-line-by-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csharp411.com/c-read-text-file-line-by-line/</link>
	<description>C# Development</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:14:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: carlos</title>
		<link>http://www.csharp411.com/c-read-text-file-line-by-line/#comment-872</link>
		<dc:creator>carlos</dc:creator>
		<pubDate>Mon, 29 Aug 2011 09:58:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/c-read-text-file-line-by-line/#comment-872</guid>
		<description>hi,
i nedd to read each number from a file and save them in a variable;
Exemple File:
10 20 30 40 50 60 70

I have to put values in an anrray for example:
arr[0] = 10
arr[1] = 20
arr[2] = 30
but i cant read only 10 and than only 20, i only can read all line.
Can you help me?

thanks</description>
		<content:encoded><![CDATA[<p>hi,<br />
i nedd to read each number from a file and save them in a variable;<br />
Exemple File:<br />
10 20 30 40 50 60 70</p>
<p>I have to put values in an anrray for example:<br />
arr[0] = 10<br />
arr[1] = 20<br />
arr[2] = 30<br />
but i cant read only 10 and than only 20, i only can read all line.<br />
Can you help me?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Savonarole</title>
		<link>http://www.csharp411.com/c-read-text-file-line-by-line/#comment-871</link>
		<dc:creator>Savonarole</dc:creator>
		<pubDate>Sun, 14 Aug 2011 15:27:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/c-read-text-file-line-by-line/#comment-871</guid>
		<description>no error but not listed the text file in output console, i&#039;m using visual studio and i think the sample is watching active project folder, i don&#039;t see in console the line i have put in c:temptest.txt, WHAT&#039;S WRONG Please ?

file seem to have been open anyway, but not read, i have put Console.WriteLine(&quot;end&quot;); to test output console</description>
		<content:encoded><![CDATA[<p>no error but not listed the text file in output console, i&#8217;m using visual studio and i think the sample is watching active project folder, i don&#8217;t see in console the line i have put in c:temptest.txt, WHAT&#8217;S WRONG Please ?</p>
<p>file seem to have been open anyway, but not read, i have put Console.WriteLine(&#8220;end&#8221;); to test output console</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avijit</title>
		<link>http://www.csharp411.com/c-read-text-file-line-by-line/#comment-870</link>
		<dc:creator>Avijit</dc:creator>
		<pubDate>Fri, 24 Jun 2011 10:27:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/c-read-text-file-line-by-line/#comment-870</guid>
		<description>I am sure you can write it, if you know following:
&gt;Reading file line by line
&gt;writing into the file
&gt;Array sorting

Then do the following:

Step 1: read the file line by line and store them into an array (You decide the array length)

Step 2: Sort the array in asc/desc order

step 3: Open the same file in write mode and write array element into the file sequentially</description>
		<content:encoded><![CDATA[<p>I am sure you can write it, if you know following:<br />
&gt;Reading file line by line<br />
&gt;writing into the file<br />
&gt;Array sorting</p>
<p>Then do the following:</p>
<p>Step 1: read the file line by line and store them into an array (You decide the array length)</p>
<p>Step 2: Sort the array in asc/desc order</p>
<p>step 3: Open the same file in write mode and write array element into the file sequentially</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: max</title>
		<link>http://www.csharp411.com/c-read-text-file-line-by-line/#comment-869</link>
		<dc:creator>max</dc:creator>
		<pubDate>Thu, 16 Jun 2011 07:16:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/c-read-text-file-line-by-line/#comment-869</guid>
		<description>/i want to read a text file line by line which is containing the numbers and reprint the numbers in same text file in sorted manner , do u have any code for that</description>
		<content:encoded><![CDATA[<p>/i want to read a text file line by line which is containing the numbers and reprint the numbers in same text file in sorted manner , do u have any code for that</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.csharp411.com/c-read-text-file-line-by-line/#comment-868</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Fri, 06 May 2011 01:19:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/c-read-text-file-line-by-line/#comment-868</guid>
		<description>For more easy to understand examples on how to read (and write) from text files in C# check out:
http://programming.flashadventures.com/c-sharp/reading-text-from-files</description>
		<content:encoded><![CDATA[<p>For more easy to understand examples on how to read (and write) from text files in C# check out:<br />
<a href="http://programming.flashadventures.com/c-sharp/reading-text-from-files" rel="nofollow">http://programming.flashadventures.com/c-sharp/reading-text-from-files</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ignaseo</title>
		<link>http://www.csharp411.com/c-read-text-file-line-by-line/#comment-867</link>
		<dc:creator>ignaseo</dc:creator>
		<pubDate>Fri, 08 Apr 2011 10:42:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/c-read-text-file-line-by-line/#comment-867</guid>
		<description>Just for me the best way read the file per bytes array not by line.</description>
		<content:encoded><![CDATA[<p>Just for me the best way read the file per bytes array not by line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: timm</title>
		<link>http://www.csharp411.com/c-read-text-file-line-by-line/#comment-866</link>
		<dc:creator>timm</dc:creator>
		<pubDate>Thu, 17 Mar 2011 20:11:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/c-read-text-file-line-by-line/#comment-866</guid>
		<description>@abc123: File.ReadAllLines() reads all lines at once, which is handy, but it may not be appropriate for large files or situations where you may only need to read part of a file.</description>
		<content:encoded><![CDATA[<p>@abc123: File.ReadAllLines() reads all lines at once, which is handy, but it may not be appropriate for large files or situations where you may only need to read part of a file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abc123</title>
		<link>http://www.csharp411.com/c-read-text-file-line-by-line/#comment-865</link>
		<dc:creator>abc123</dc:creator>
		<pubDate>Thu, 17 Mar 2011 17:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/c-read-text-file-line-by-line/#comment-865</guid>
		<description>This does pretty much the same thing, except it puts the lines into an array.

string[] lines = File.ReadAllLines(@&quot;c:temptest.txt&quot;);</description>
		<content:encoded><![CDATA[<p>This does pretty much the same thing, except it puts the lines into an array.</p>
<p>string[] lines = File.ReadAllLines(@&#8221;c:temptest.txt&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marwa</title>
		<link>http://www.csharp411.com/c-read-text-file-line-by-line/#comment-864</link>
		<dc:creator>marwa</dc:creator>
		<pubDate>Mon, 21 Feb 2011 15:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/c-read-text-file-line-by-line/#comment-864</guid>
		<description>can any one help plz i need to make a project that browse for location of an excel sheet and read it and then read files names in certain folder and try to match files names with lines in excel sheet and the output is the un found files names</description>
		<content:encoded><![CDATA[<p>can any one help plz i need to make a project that browse for location of an excel sheet and read it and then read files names in certain folder and try to match files names with lines in excel sheet and the output is the un found files names</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: timm</title>
		<link>http://www.csharp411.com/c-read-text-file-line-by-line/#comment-863</link>
		<dc:creator>timm</dc:creator>
		<pubDate>Sun, 23 Jan 2011 19:20:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharp411.com/c-read-text-file-line-by-line/#comment-863</guid>
		<description>@Erlich: StreamReader.ReadLine() doesn&#039;t take any arguments and returns a string.

http://msdn.microsoft.com/en-us/library/system.io.streamreader.readline.aspx</description>
		<content:encoded><![CDATA[<p>@Erlich: StreamReader.ReadLine() doesn&#8217;t take any arguments and returns a string.</p>
<p><a href="http://msdn.microsoft.com/en-us/library/system.io.streamreader.readline.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.io.streamreader.readline.aspx</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

