Changed filepath script to output to csv instead of txt

This commit is contained in:
2015-08-04 10:10:58 -04:00
parent f18fc308f9
commit 192ce76dc5
6 changed files with 46 additions and 7 deletions

12
source/csvFile.rb Normal file
View File

@@ -0,0 +1,12 @@
require 'csv'
class Csvfile
def writeToCsv(filePath,whatToWrite)
CSV.open(filePath.to_s, "a") do |csv|
# csv << ["row", "of", "CSV", "data"]
csv << whatToWrite
end
end
end