<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/6894" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2004-02-20T16:38:45-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/6894</id>

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-02-20T16:38:45-04:00</updated>

		<published>2004-02-20T16:38:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33773#p33773</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33773#p33773"/>
		<title type="html"><![CDATA[Great news]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33773#p33773"><![CDATA[
Thanks for the quick and informative reply.  This board has got some good peeps on it.<p>Statistics: Posted by Guest — Fri Feb 20, 2004 4:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-02-20T16:14:46-04:00</updated>

		<published>2004-02-20T16:14:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33772#p33772</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33772#p33772"/>
		<title type="html"><![CDATA[Re: Clear]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33772#p33772"><![CDATA[
<blockquote class="uncited"><div>Thanks for all the help.  Now it is much clearer!!  But I have one more question.  Where does the file array.txt lie in the directory structure of the PC for like say Windows 2000?</div></blockquote>Probably in the directory returned by 'pwd' (usually where your .conf resides) unless you've changed your working directory using 'cd' or specify an absolute/relative path. (eg: C:/path/to/file.txt or ../name.ext) Forward slashes are usually okay on windrops too, because cygwin does transparent translation of paths.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Feb 20, 2004 4:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-02-20T16:10:13-04:00</updated>

		<published>2004-02-20T16:10:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33771#p33771</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33771#p33771"/>
		<title type="html"><![CDATA[Array and file save]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33771#p33771"><![CDATA[
Probably in your bot's dir. If you're not sure, why don't you give a full path instead of just array.txt?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Feb 20, 2004 4:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-02-20T15:02:22-04:00</updated>

		<published>2004-02-20T15:02:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33764#p33764</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33764#p33764"/>
		<title type="html"><![CDATA[Clear]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33764#p33764"><![CDATA[
Thanks for all the help.  Now it is much clearer!!  But I have one more question.  Where does the file array.txt lie in the directory structure of the PC for like say Windows 2000?<p>Statistics: Posted by Guest — Fri Feb 20, 2004 3:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-02-20T12:41:02-04:00</updated>

		<published>2004-02-20T12:41:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33762#p33762</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33762#p33762"/>
		<title type="html"><![CDATA[Re: Saw that]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33762#p33762"><![CDATA[
<blockquote class="uncited"><div>I didn't know exactly what uplevel was and also what {name file} meant.<br>Can you put something like C:\text.txt as the name?</div></blockquote>Uplevel executes commands in a different scope. One level up means where ever the proc was called from. (so GodOfSuicide is wrong in his previous post)<br>'name' is the name of your array, 'file' is the name of the file to fetch the contents from.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Feb 20, 2004 12:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2004-02-20T09:46:54-04:00</updated>

		<published>2004-02-20T09:46:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33757#p33757</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33757#p33757"/>
		<title type="html"><![CDATA[Array and file save]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33757#p33757"><![CDATA[
asume yer array is called myarray<br>either you have a global array then you call it with "write_array myarray array.txt" / "read_array myarray array.txt" / <br><br>of you have a local array then you have to use the code from inside that proc in your own<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Fri Feb 20, 2004 9:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-02-19T18:22:59-04:00</updated>

		<published>2004-02-19T18:22:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33751#p33751</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33751#p33751"/>
		<title type="html"><![CDATA[Saw that]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33751#p33751"><![CDATA[
I didn't know exactly what uplevel was and also what {name file} meant.<br>Can you put something like C:\text.txt as the name?<p>Statistics: Posted by Guest — Thu Feb 19, 2004 6:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2004-02-19T17:21:01-04:00</updated>

		<published>2004-02-19T17:21:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33749#p33749</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33749#p33749"/>
		<title type="html"><![CDATA[Array and file save]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33749#p33749"><![CDATA[
well, you didnt search well enaught<br><div class="codebox"><p>Code: </p><pre><code>proc write_array {name file} {   set fp [open $file w]   puts $fp [uplevel 1 [list array get $name]]   close $fp } proc read_array {name file} {   set fp [open $file r]   uplevel 1 [list array set $name [read -nonewline $fp]]   close $fp } </code></pre></div>it was in my "backup vars in file" or somth like that thread, i think slenox himself provided that code<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Thu Feb 19, 2004 5:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-02-19T15:20:31-04:00</updated>

		<published>2004-02-19T15:20:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33748#p33748</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33748#p33748"/>
		<title type="html"><![CDATA[Array and file save]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33748#p33748"><![CDATA[
I searched these forums all day yesterday and have been unable to find anything on this so here goes.  I was wanting to write an array and save that information to a file and then pull that information from that file.  Does anyone know how to do this or can give me an example.  I have searched numerous websites only to find an array definition and not much help.<br><br>Thanks for your help in advance!<p>Statistics: Posted by Guest — Thu Feb 19, 2004 3:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
