Well you have your problem explain, now start coding.
Opening: reading/writing: Click Here
Here's a small example of a csv file:
*,*,*,*,*,*,*,*,*,*,*
*,*,*,*,*,+,*,x,*,*,*
*,*,*,*,*,+,*,x,*,*,*
*,*,*,x,*,+,*,x,*,*,*
*,*,*,*,*,+,*,x,x,*,*
*,*,*,*,*,+,*,x,x,*,*
*,*,*,*,*,+,*,*,*,*,*
Where the '*' character marks an empty chair, 'x' marks an occupied chair, and '+' marks the corridor.