Issue-ID: INT-797
Change-Id: I187b1c882d087eee5df9ec49f7261c2b07332f28
Signed-off-by: Brian Freeman <bf1936@att.com>
--- /dev/null
+import csv
+class csvLibrary(object):
+
+ def read_csv_file(self, filename):
+ '''This creates a keyword named "Read CSV File"
+
+ This keyword takes one argument, which is a path to a .csv file. It
+ returns a list of rows, with each row being a list of the data in
+ each column.
+ '''
+ data = []
+ with open(filename, 'rb') as csvfile:
+ reader = csv.reader(csvfile)
+ for row in reader:
+ data.append(row)
+ return data