Parse ID file in scala