TITLE: Every open neighborhood of a point in the closure contains a point in the set
QUESTION [6 upvotes]: Definitions:

Neighborhood: The neighborhood of a point $x$ is a subset of the topological space $X$ that contains an open set such that $x$ is in that open set.
Closure: The closure of a set $S$ is the intersection of all the closed subsets of the topological space $X$ which contain $S$ as a subset.
Closed: A set is closed if the complement of that set is open.

I want to prove that every open neighborhood of a point $x$ in the closure of a set $S$ contains a point in $S$.
If $x \in S$, then we're done. If $x \not\in S$, then $x \in \operatorname{cl}S \setminus S$. Since we don't know if $S$ is open, closed, both, or neither, I guess we have to do cases:
1) $S$ is closed: then $S = \operatorname{cl}S$, so we're done.
2) $S$ is open: then $S = \operatorname{Int}S$ and $\operatorname{cl}S \setminus S$ is closed. If $x \in \operatorname{cl}S \setminus S$, and there exists an open neighborhood of $x$.... I don't know how to show that a point in this neighborhood can also be in $S$.
3) $S$ is both open and closed: No idea how to start this one
4) $S$ is neither open nor closed: No idea how to start this one

REPLY [3 votes]: We proceed by contraposition and prove: if a point $x$ has a neighbourhood  (not necessarily open) that doesn't meet $S$, it is not in the closure of $S$.
Indeed, we may suppose this neighbourhood $V$ is open. Then, $F_X\smallsetminus V$  is a closed subset of $X$, and it contains $S$. Hence $x$ doesn't lie in all closed subsets of $X$, i.e. it doesn't lie in the closure of $S$.
Note. This proof is valid in any topological space, not only in metric spaces.