I was using
CSV.open(filename, "w") do |csv|
to create and write to a file in one ruby.rb file and now I need to open it and edit it in a second .rb file. I need the new file to start writing new rows where the first edit ended.
Any good way to do this? Calling
CSV.open(filename, "w") do |csv|
again overwrites the line that were already written.