I know that if a set is closed then it can be expressed as a countable union of compact sets. But is the converse true?
I am asking because while reading a real analysis book, the following comment is remarked: Let $\bar{B_k}$ the the closure of a ball with radius $k$ centered at 0. If $F\cap\bar{B_k}$ is closed for any $k \in \mathbb{Z}^+$ then $F$ is closed. Or is there another way of showing the passing remark?