WriteState function

Output of the current state of streams