dot-readThresholdFile function

Internal function to read threshold files