import sys
filenames = sys.argv[1:]
def fixline(filename):
text = open(filename).read()
text = text.replace('\n\r','\n')
return text
for file in filenames:
print fixline(file)
This is of course interesting. I have thought about this before: But wouldn't it be more interesting to use (say the orient) language's mindset to set, embedded into the language at its core?
I'm not sure I fully understand what you mean by "code sample from these languages", but Ruby's source has plenty of code contributed from all over the world https://github.com/ruby/ruby
Anyone know where to look? What obstacles or advantages does the character sets give these languages?