I have been trying to establish that there is a bijection from the set of real continuous function on $[0,1]$ denoted by $C[0,1]$ to the set of reals $\mathbb{R}$.
I have been using Cantor-Schröder-Bernstein theorem to prove this. Consider the function: $f:\mathbb{R} \to C[0,1]$ by $f(x)$ equals the constant function $g:[0,1]\to\mathbb{R}$ given by $g(y)=x$ for each $y\in[0,1]$. Clearly, $f$ is an injection. I have been trying to find an injection from $C[0,1]$ to $\mathbb{R}$ but have been unsuccessful in doing so. I suspected that $h:C[0,1]\to\mathbb{R}$ defined by $h(f)=\int_{0}^{1}f$ would work but certainly it doesn't.
Hints would be appreciated.
TL,DR: Find an injection from $C[0,1]$ to $\mathbb{R}$.