Java, creating a maze

Hi, I am writing creating a Maze for an assignment. For one part of the assignment, I am supposed to read from a file and check if the file contain a rectangular maze with required components. I was wondering how I can do this.
pIIC|690x286