Extract level information to text files