<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — Addfile: Change source and destination dir+filename?]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=383&amp;type=atom" />
	<updated>2009-08-19T10:59:33Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=383</id>
		<entry>
			<title type="html"><![CDATA[Re: Addfile: Change source and destination dir+filename?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1466#p1466" />
			<content type="html"><![CDATA[<p>memory-wise not really any disadvantages.&nbsp; the method addfile essentially does exactly that underneath.&nbsp; you do lose the datetime stamp of the file though.</p>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2009-08-19T10:59:33Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1466#p1466</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Addfile: Change source and destination dir+filename?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1464#p1464" />
			<content type="html"><![CDATA[<p>Thanks for your fast answer. <br />Will check that out.</p><p>Are there any disadvantages using streams over a &quot;normal&quot; file creation?<br />The stream should be faster, but use more memory?</p>]]></content>
			<author>
				<name><![CDATA[Grisu]]></name>
				<uri>https://gprogs.com/profile.php?id=264</uri>
			</author>
			<updated>2009-08-19T07:19:29Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1464#p1464</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Addfile: Change source and destination dir+filename?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1462#p1462" />
			<content type="html"><![CDATA[<p>greetings <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; that is a great idea and i will get that added.&nbsp; in the meantime you can use the AddStream method instead:<br /></p><div class="codebox"><pre><code>zwObject.OpenZip(&quot;testfile.zip&quot;, False) )
Local fileStream:TStream = OpenFile( &quot;Source\station.txt&quot; )
zwObject.AddStream(fileStream, &quot;ZipDir\stationzip.txt, password)
zwObject.CloseZip()</code></pre></div>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2009-08-19T01:00:55Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1462#p1462</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Addfile: Change source and destination dir+filename?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1461#p1461" />
			<content type="html"><![CDATA[<p>Hello!</p><p>Is it possible to change the source and destination dir+filename when creating a zip?</p><p>Somewhat like that:</p><p>zwObject.OpenZip(&quot;testfile.zip&quot;, False) )<br />zwObject.AddFile(&quot;Source\station.txt&quot;, &quot;ZipDir\stationzip.txt, password)<br />zwObject.CloseZip()</p><p>Thanks.<br />Grisu</p>]]></content>
			<author>
				<name><![CDATA[Grisu]]></name>
				<uri>https://gprogs.com/profile.php?id=264</uri>
			</author>
			<updated>2009-08-18T21:50:38Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1461#p1461</id>
		</entry>
</feed>
