def readInQuery(textFile):
    """Read in a textfile with an HTSQL query"""
    #read in text file
    query=''
    for line in open(textFile):
        query+=line
    query=query.strip()
    
    return query