klyn.io.xlsx.Workbook.Workbook
constructor

    public Workbook(path as Path, mode as WorkbookMode = WorkbookMode.READ) throws IOException:

Description

Creates or reads a workbook.

Parameters

Parameter | Description
--- | ---
`path` | XLSX file path.
`mode` | Opening mode.

Throws

- IOException if a workbook opened in read mode cannot be loaded.

Example

    import klyn.io
    import klyn.io.xlsx

    workbook = Workbook(FilePath("report.xlsx"), WorkbookMode.CREATE)
    workbook.close()