Addnum in txt and scala