'''
They are included here in case you want to use them.

There is NO need to modify this file.

Created on Nov 17, 2013
@author: rcd
'''

import csv


# general function for reading all three IMDB movie files
def readCSVfile (filename):
    """
    given a filename that is formatted as CSV, comma-separated-values,
    return a list of lists of strings, where each line is represented
      as a list of separate string elements
    """
    # some OSes need to know that the file might have some special characters
    f = open(filename, 'rb')
    # convert reader to a list so we can close the file
    result = list(csv.reader(f, delimiter=',', quotechar='"'))
    # close the file so we do not take up extra system resources
    f.close()
    return result
