Better file reading for roots file