def saveTxt(x, path):
    """ save given string or list of strings to filepath

    params
    =============================
    x: str or list, list of str
    path: str, file path
    """
    with open(path, 'w') as f:
        if isinstance(x, list):
            for i in x:
                f.write('%s\n' % i)
        else:
            f.write(str(x))
