It would be nice to read in crystal information from
the ICSD format. A sample of somewhat like the ICSD
format is available at:
I suggest that you contact ICSD
to get the official description of their format, which
is slightly different from what the link above provides.