On pg. 4 of this article on profinite groups is defined the following:
A topological space $X$ is said to be totally disconnected if each connected component of $X$ is a singleton.
Then the author remarks that a space $X$ is totally disconnected if and only if for any two distinct points in $X$, there is a closed and open subset of $X$ which contains one of the points but not the other.
I am unable to show this. One direction is trivial. But I am not able to conclude from the definition of total disconnectedness that one can "separate any two points by a disconnection."