Skip to content

AFileOutputStream#

Opens a file for a binary write.

Header:#include <AUI/IO/AFileOutputStream.h>
CMake:aui_link(my_target PUBLIC aui::core)

Examples#

examples/app/notes/src/main.cpp

Notes App — Note taking app that demonstrates usage of AListModel, AProperty, user data saving and loading.

    /// [load]

    /// [save]
    void save() {
        AFileOutputStream("notes.json") << aui::to_json(*mNotes);
        mDirty = false;
    }
    /// [save]

    /// [newNote]

Public Types#


WriteException#

class AFileOutputStream::WriteException

Probably thrown when target storage went out of space

Empty structure.