1. Check trade file for blank lines.

2. Generate a trade file properly.