Prove that a proper subset $E$ of $\Bbb R^n$ is connected $\iff$ it contains exactly two relatively clopen sets.
I researched the meaning of "clopen set". And I reached the result that so as to for a set $A$ be clopen, the set $A$ need to be both closed and open.
I cannot do this proof. Please help me to do this. Thank you