This question came up in a lunchtime discussion with coworkers. None of us are professional mathematicians or teachers of math. I apologize for any incorrect math or sloppy terminology.
We were discussing getting from one number to another along the real number line. The challenge is that we removed the integers from the number line.
So can an ant get from 0.5 to 1.5 by crawling along this "broken" line?
Searching the web, we discovered this may be a problem in topology, somehow (possibly) related to something called the "Long Line". This is far outside of any of our knowledge so we would appreciate an explanation at roughly the basic calculus level.
The relevant concept from topology here is connectedness. You may want to read the Wikipedia article for more information. There are lots of equivalent ways of defining it, but a topological space is considered if the space can't be divided into two open sets. The terms "open" and "closed" are misleading because sets can be both open and closed, or neither, but when your topological space is a subset of the real line using the Euclidean topology, then it makes sense because the open sets are unions of open intervals, and the closed sets are (finite) unions of closed intervals. Here are a few examples:
$(0, 1)$ is open.
$[0, 1]$ is closed.
$(0, 1) \cup (1, 2)$ is open.
$(0, 1) \cup [1, 2]$ is neither open nor closed. This is example is actually a single interval, but it doesn't matter.
So, to answer your question about the set $\mathbb{R} - \mathbb{Z}$ using the euclidean topology, it's easy to show that it's not connected. The set of all points less than $0$ and the set of all points greater than $0$ are two disjoint open sets such that their union is the whole space.
Another counterexample is to have one open set be the interval $(0, 1)$ and the other set be everything else. This shows that the points $0.5$ and $1.5$ are in connected components, so there's no path from one to the other with the usual topology.