]> git.saurik.com Git - wxWidgets.git/commitdiff
Mention that entry names are full paths after feedback from David Wright
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Mon, 4 Jul 2005 12:21:35 +0000 (12:21 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Mon, 4 Jul 2005 12:21:35 +0000 (12:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/arc.tex

index eee37b4d52fde03526ee958160450f6f5ca0a7ad..a5ac17d7e3b6e8cb0b40e86681d23b346c351fb4 100644 (file)
@@ -52,15 +52,19 @@ For example:
     wxFFileOutputStream out(_T("test.zip"));
     wxZipOutputStream zip(out);
     wxTextOutputStream txt(zip);
+    wxString sep(wxFileName::GetPathSeparator());
 
     zip.PutNextEntry(_T("entry1.txt"));
-    txt << _T("Some text for entry1\n");
+    txt << _T("Some text for entry1.txt\n");
 
-    zip.PutNextEntry(_T("entry2.txt"));
-    txt << _T("Some text for entry2\n");
+    zip.PutNextEntry(_T("subdir") + sep + _T("entry2.txt"));
+    txt << _T("Some text for subdir/entry2.txt\n");
 
 \end{verbatim}
 
+The name of each entry can be a full path, which makes it possible to
+store entries in subdirectories.
+
 
 \subsection{Extracting an archive}\label{wxarcextract}