def listFromFile(fileName):
    """Read in a file; return a list of its lines.  Ignore blank lines."""
    lines = []
    with open(fileName, 'r') as inF:
        line = inF.readline()
        while (line):
            line = line.rstrip()
            if (len(line)):
                lines.append(line)
            line = inF.readline()
    return lines