def read2mem(path):
    with open(path) as f:
        content = ''
        while 1:
            try:
                lines = f.readlines(100)
            except UnicodeDecodeError:
                f.close()
                continue
            if (not lines):
                break
            for line in lines:
                content += line
    return content
def read2mem(path):
    with open(path) as f:
        content = 
        while 1:
            try:
                lines = f.readlines(100)
            except UnicodeDecodeError:
                f.close()
                continue
            if (not lines):
                break
            for line in lines:
                content += line
    return content