in reply to opening udp file
I could imagine that reading the pcap file format description and reading the files according tot the headers might help.