1
2
3
4
def writefile(file, *linedata)
	linedata.each do |line| 	
		file << line.join(",") + "\n"
...

Ruby Parsing non-delimited text

by thepanu, October 06, 2008 07:48, 1 refactoring, tagged with parsing, non-delimited, regexp, csv

I have large text-reports f...

98edd841bbc19903cd758722d9745f0b Talk
1
2
3
4
require 'csv'

def sort_csv(filename, fields = ["ID"], reverse = false)
...

Ruby Ruby Custom Sort

by cpjolicoeur, August 03, 2008 14:37, 5 refactorings, tagged with ruby, sort, csv, sorting

I had this question recentl...

Cf8a610127d1108dfe67f673320b5fe5 Talk