I want to import my csv as a 2d array within appscript, I don't want to export it to sheets, I just want to use the data to create google forms. The csv is located on the google drive so I want to import from my google drive into a 2d array variable.
I tried multiple attempts of similar iterations of this.
function importCSVFromGoogleDrive() {
var slotadata = Utilities.parseCsv(DriveApp.getFilesByName("Slot A.csv").next())
}
To check if it is a 2d array I logged the slotadata and its length in the logger, but it returns as [20-11-08 15:27:15:880 GMT][['Slot A.csv']]
tl;dr how to import csv from drive into variable as 2d array on GAS (Google App Script)