<?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: Simple file IO in different dynamic languages</title>
	<atom:link href="http://blog.huikau.com/2007/11/25/simple-file-io-in-different-dynamic-languages/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.huikau.com/2007/11/25/simple-file-io-in-different-dynamic-languages/</link>
	<description>... finding time to write something useful is nontrivial ...</description>
	<lastBuildDate>Sat, 20 Dec 2008 03:58:34 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Asbjørn Ulsberg</title>
		<link>http://blog.huikau.com/2007/11/25/simple-file-io-in-different-dynamic-languages/comment-page-1/#comment-8</link>
		<dc:creator>Asbjørn Ulsberg</dc:creator>
		<pubDate>Thu, 29 Nov 2007 10:27:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.huikau.com/2007/11/25/simple-file-io-in-different-dynamic-languages/#comment-8</guid>
		<description>If you want, you can add C# 2.0 to the list with the following code:
[sourcecode language=&quot;java&quot;]
class Program {
  static void Main(string[] args) {
    foreach (string line in System.IO.File.ReadAllLines(&quot;test.txt&quot;)) {
      System.Console.WriteLine(line);
    }
  }
}
[/sourcecode]

There are a million ways to do this in C#, each with different properties, benefits and drawbacks. This particular option gives the simplest code, but since it reads every line into an array, it&#039;s not optimal for very large files.</description>
		<content:encoded><![CDATA[<p>If you want, you can add C# 2.0 to the list with the following code:</p>
<pre name="code" class="java">

class Program {
  static void Main(string[] args) {
    foreach (string line in System.IO.File.ReadAllLines(&quot;test.txt&quot;)) {
      System.Console.WriteLine(line);
    }
  }
}
</pre>
<p>There are a million ways to do this in C#, each with different properties, benefits and drawbacks. This particular option gives the simplest code, but since it reads every line into an array, it&#8217;s not optimal for very large files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anders</title>
		<link>http://blog.huikau.com/2007/11/25/simple-file-io-in-different-dynamic-languages/comment-page-1/#comment-7</link>
		<dc:creator>Anders</dc:creator>
		<pubDate>Thu, 29 Nov 2007 07:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.huikau.com/2007/11/25/simple-file-io-in-different-dynamic-languages/#comment-7</guid>
		<description>There&#039;s also an alternative way to output the file content in Ruby:

puts File.read(&quot;text.txt&quot;)

Less OO, but less verbose.</description>
		<content:encoded><![CDATA[<p>There&#8217;s also an alternative way to output the file content in Ruby:</p>
<p>puts File.read(&#8220;text.txt&#8221;)</p>
<p>Less OO, but less verbose.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blog.huikau.com/2007/11/25/simple-file-io-in-different-dynamic-languages/comment-page-1/#comment-6</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sun, 25 Nov 2007 17:03:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.huikau.com/2007/11/25/simple-file-io-in-different-dynamic-languages/#comment-6</guid>
		<description>FYI: just ran Jython... it comes in between Groovy and Scala with 0m1.118s...</description>
		<content:encoded><![CDATA[<p>FYI: just ran Jython&#8230; it comes in between Groovy and Scala with 0m1.118s&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
