TriX - read and write