The goal is to show that $\overline S$ is not path connected, where $S=\{x\times \sin(\frac{1}{x}):x\in(0,1]\}$.
Proof. Suppose there is path $f:[a,c]\to\overline S$ beginning at the origin and ending at a point of $S$. The set of those $t$ for which $f(t)\in0\times[-1,1]$ is closed, so it has a largest element $b$. Then $f:[b,c]\to\overline S$ is a path that maps $b$ into the vertical interval $0\times [-1,1]$ and maps the other points of $[b,c]$ to points of $S$. Replace $[b,c]$ by $[0,1]$ for convenience; let $f(t)=(x(t),y(t)).$
Then $x(0)=0,$ while $x(t)>0$ and $y(t)=\sin(1/x(t))$ for $t>0$.
We show there is a sequence of points $t_n\to0$ such that $y(t_n)=(-1)^n.$ Then the sequence $y(t_n)$ diverges, contradicting the continuity of $f.$
To find $t_n$ we proceed as follows: Given $n,$ choose $u$ with $0<u<x(1/n)$ such that $\sin(1/u)=(-1)^n$. Then use the intermediate value theorem to find $t_n$ with $0<t_n<1/n$ such that $x(t_n)=u.$
I don't understand how this function $f(t)=(x(t),y(t))$ is defined. $f(0)=(x(0),y(0))=(0,?)$
About the sequence of points $t_n$, I don't understand the process of construction.
Given $n\in\mathbb N,$ let $u\in(0,x/n)\dots$ Is $x$ is a function right?
Using IVT, why the interval for $t_n$ is $(0,1/n)$?