Here are some samples of working with files in boo and .NET/Mono.
...this post originally by bamboo...
TextReader is considered to be enumerable in boo. So you can write things like:
for line in File.OpenText("foo"):
print line.ToUpper() if len(line) > 0
Yep. Type inference works.
I like how easy it is to grep:
for index, line in File.OpenText("foo"):
Powered by a free Atlassian Confluence Open Source Project License granted to Codehaus. Evaluate Confluence today.