Magit provides several commands that visit a file or blob (the version of a file that is stored in a certain commit). Actually it provides several groups of such commands and the several variants within each group.
Also see Commands for Buffers Visiting Files.