Confusing problems with pgns

I want my program to read a pgn file from a chess game, and simply make each move in it its own variable. Is this possible, or am I not even making sense?