def readlines(fil=None,raw=False):
    """
    Read in all lines of a file.
    
    Parameters
    ----------
    file : str
         The name of the file to load.
    raw : bool, optional, default is false
         Do not trim \n off the ends of the lines.

    Returns
    -------
    lines : list
          The list of lines from the file

    Example
    -------

    .. code-block:: python

       lines = readlines("file.txt")

    """
    if fil is None: raise ValueError("File not input")
    f = open(fil,'r')
    lines = f.readlines()
    f.close()
    # Strip newline off
    if raw is False: lines = [l.rstrip('\n') for l in lines]
    return lines