Are you able to read the port or timestamp value successfully? It may be because the stream reader hasn't read to the end of the file that you can't access any of the attributes. You could try ...