IMPORT, rec.fil, name
EXPORT, rec.fil, name
EXPORT writes the entire contents of record rec on MOLPRO file fil using Fortran binary I/O to file name. If name does not start with /, it is assumed to be relative to the directory in which the molpro command was issued. IMPORT does the reverse, bringing in previously exported data.
The precise file format can be summed up through the following sample code which would read the exported file:
real*8 data(max_length) integer length open (unit=ifile,file=xxxx,form='UNFORMATTED',status='OLD') read (ifile) length read (ifile) (data(i),i=1,length) close (ifile)Note that it is assumed that all the data is real*8; integers can be recovered through appropriate equivalencing.