It's likely you're thinking of the "Dotted Hole" mentioned in the Pokémon FireRed and LeafGreen guide books. This hole is found in Route 112, north of the Safari Zone.
However, the "Dotted Hole" is actually a misprint. It's not an actual location in the game, and there's no way to access it.
This misprint has caused confusion among fans for years, so it's understandable that you might be wondering how to get into the "Dotted Cave".