require 'csv'

records     = CSV.readlines("source.csv")
...

Ruby Generate HTML links from CS...

by mattonrails.myopenid.com, April 18, 2010 20:45, 2 refactorings, tagged with ruby, script, csv

I was given a 100+ row XLSX...

0b30c6aa6b9027d124ca028325b80b15 Talk
# sum an an array's elements
def sum_row(a)
  sum = 0
...

Ruby Conditionally deleting colu...

by srboisvert.myopenid.com, December 18, 2008 00:18, 6 refactorings, tagged with ruby, array, csv

I needed to read in a CSV f...

12d6a2e5971e661ee2bf2994526e848d Talk
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, csv, non-delimited, regexp

I have large text-reports f...

98edd841bbc19903cd758722d9745f0b Talk
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, sorting, csv

I had this question recentl...

Cf8a610127d1108dfe67f673320b5fe5 Talk