pymchelper.flair.common.fortran module

pymchelper.flair.common.fortran.read(f)[source]

Read a fortran structure from a binary file :param f: file to read from :return: data, None for EOF

pymchelper.flair.common.fortran.skip(f)[source]

Skip a fortran block from a binary file :param f: file to read from :return: size, None for EOF

pymchelper.flair.common.fortran.write(f, d)[source]

Write a block of data (string) to file as a fortran block :param f: file to write to :param d: data to write :return: output of last write statement