fix reading failure on empty primary.txt
Add constant for delimiter