I have columns with headers as such:
First,Last,ID,Type
The first row of data looks like this:
Jon,Smith,123,,
There is no value under the fourth column Type.
I have a script that parses each column into an array and does different actions based on the first three criteria, First,Last,ID.
I need to write to the CSV file. The logic would look like this:
If First == Jon, Last == Smith, and ID == 123, write "Success" to Type
I have the following script:
CSV.open("Content_File.csv", "wb") do |csv|
csv << ["row", "of", "CSV", "data"]
csv << ["another", "row"]
but all it does is write content to a CSV file row by row. I need to write to a specific row and a specific column.
Any thoughts?