Делаю так:
Code: Select all
wxZipInputStream ZipStream("zipfile.zip", "file.txt");
...
// Читаю данные из файла
...
wxRemoveFile("zipfile.zip");
Как можно еще удалить файл?
Code: Select all
wxZipInputStream ZipStream("zipfile.zip", "file.txt");
...
// Читаю данные из файла
...
wxRemoveFile("zipfile.zip");
Code: Select all
{
wxZipInputStream ZipStream("zipfile.zip", "file.txt");
...
// Читаю данные из файла
...
}
wxRemoveFile("zipfile.zip");
Code: Select all
wxZipInputStream pZipStream = new wxZipInputStream("zipfile.zip", "file.txt");
...
// Читаю данные из файла
...
delete pZipStream;
// И только после этого можно удалить файл.
wxRemoveFile("zipfile.zip");