I am trying to prove this statement, but having troubles with using notion of continuity.
The closest answer I found on stackexchange that matches the question is from Tarc (last answer):
Prove that an open interval and a closed interval are not homeomorphic
Still, I don't quite comprehend the last paragraph:
Suppose $f: [a,b] \to (c, d)$ is a homeomorphism. Observe that $f(a)\not=f(b)$ as $f$ is injective and consider the point $f(a)+f(b)\over 2$ at half the distance between $f(a)$ and $f(b)$. As $f$ is surjective, $f(x) = {f(a)+f(b)\over 2 }$ for some $x \in [a,b]$.
Now let $\delta$ be enough for both the distances between $f(x)$ and $f(a)$, and between $f(x)$ and $f(b)$ to be less than $\delta$ and yet the open interval centered at $f(x)$ of radius $\delta$ not to cover the whole $(c,d)$.
As $f$ is continuous, there must be an open interval centered at $x$ large enough to contain both $a$ and $b$ and whose image under $f$ is within a distance of $\delta$ from $f(x)$. As such an interval must ecompass the whole $[a,b]$, the function $f$ cannot be surjective for $\delta$ is chosen in such a way that there're points in $(c,d)$ with a distance from $f(x)$ greater than $\delta$.
P.S. Without using connectedness properties -- that means no intermediate value theorem either.
UPDATE. Background of the task: This is one of the exercises from book on differential topology. Author didn't introduce notions of compactness or connectedness yet. So that's why I am wondering how to prove the claim w/o using them.
Well, if they were homemorphic then there is a continuous bijection $\;[0,1]\to (0,1)\;$ , which would make $\;(0,1)\;$ compact just as $\;[0,1]\;$ is...