Changed filepath script to output to csv instead of txt
This commit is contained in:
12
source/csvFile.rb
Normal file
12
source/csvFile.rb
Normal 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
|
||||
Reference in New Issue
Block a user