Here is a quick example of how to log out packets to the console from a valid .pcapng file named myfile.pcapng.