def getTextFile(filep):
    """
    Opens the text file and goes through line by line, appending it to the svgfile list.
    Each new line is a new object in the list, for example, if the text file was
    ----
    hello
    world
    this is an awesome text file
    ----
    Then the list would be
    ["hello", "world", "this is an awesome text file"]
    Each line is a new object in the list

    """
    file = open(filep)
    svgfile = []
    while 1:
        line = file.readline()
        if not line:
            break
        svgfile.append(line) #Go through entire SVG file and import it into a list
    return svgfile