<?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/7066" />

	<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-03-15T08:40:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Rusher2K]]></name></author>
		<updated>2004-03-15T08:40:13-04:00</updated>

		<published>2004-03-15T08:40:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34629#p34629</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34629#p34629"/>
		<title type="html"><![CDATA[some help to write a simple script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34629#p34629"><![CDATA[
Here an example to read/write a file<br><div class="codebox"><p>Code: </p><pre><code>## reading:set filesocket [open "your filename" r]; # open the fileset data(0) [gets $filesocket]; # read line1set data(1) [gets $filesocket]; # read line2close $filesocket; # close the file# writing or appending if {![file exists "your filename"]} then { ; # check for file exist    set fs [open "your filename" w]} else {    set fs [open "your filename" a]}puts $fs "your data"close $fs </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3034">Rusher2K</a> — Mon Mar 15, 2004 8:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Xpert]]></name></author>
		<updated>2004-03-14T14:18:50-04:00</updated>

		<published>2004-03-14T14:18:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34605#p34605</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34605#p34605"/>
		<title type="html"><![CDATA[some help to write a simple script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34605#p34605"><![CDATA[
How's the txt file?<br>Do you want it in a public command like "!showlast", or in a timer?<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4667">Xpert</a> — Sun Mar 14, 2004 2:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-03-14T12:03:49-04:00</updated>

		<published>2004-03-14T12:03:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34601#p34601</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34601#p34601"/>
		<title type="html"><![CDATA[some help to write a simple script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34601#p34601"><![CDATA[
can someone help me write a script that uses a txt file or mysql database. I will that the bot should write out the latest post from a database or a txt file into the channel. I hace search on the net but i did't found something.<p>Statistics: Posted by Guest — Sun Mar 14, 2004 12:03 pm</p><hr />
]]></content>
	</entry>
	</feed>
