GSAS Reader/ Writer

Is there a way to introspect the file to sort out what mode it is with out the user having to know it ahead of time?