Keywords: class-filler

Next: Observation support Up: The Python API Previous: The Python API Contents

## File support

Opening and closing an output file is done thanks to the `ClassFileOut` class, e.g.

    fileout = pyclassfiller.ClassFileOut()
    fileout.open(file='foo.30m',new=True,over=True,size=10000,single=True)
    fileout.close()
    del fileout

The above example creates a new and empty Class file named foo.30m. The `open()` and `close()` methods are described in details in Appendix . As in the CLASS program (`LASFILE OUT`), there can be only 1 output file opened at the same time.