Proof (path-connected implies connected)

Suppose $(X,τ)$ is path-connected but disconnected, so there exists a separation $X = U \cup V$.

Pick $x\in U$ and $y\in V$, and let $γ: [0,1]\to X$ be a path from $x$ to $y$. But then $γ\inv(U)$ and $γ\inv(V)$ are open (by continuity), non-empty ($x\in γ\inv(U)$ and $y\in γ\inv(V)$) and disjoint. Then $γ\inv(U) \cup γ\inv(V) = [0,1]$ is a separation, but intervals are connected.