import pickle


def load_flight_file(infile):
    """
    loads a flight file from disk.
    Opposite of make_flight_file
    """
    with open(infile, 'rb') as readfile:
        flightplan = pickle.load(readfile)
    return flightplan