Creating an archive

Archive formats such as zip

Call PutNextEntry() to create each new entry in the archive, then write the entry's data. Another call to PutNextEntry() closes the current entry and begins the next.

For example:

    wxFFileOutputStream out(_T("test.zip"));
    wxZipOutputStream zip(out);
    wxTextOutputStream txt(zip);

    zip.PutNextEntry(_T("entry1.txt"));
    txt << _T("Some text for entry1\n");

    zip.PutNextEntry(_T("entry2.txt"));
    txt << _T("Some text for entry2\n");



ymasuda 平成17年11月19日