Write DataStructures to .txt