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

	<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>2003-10-11T08:46:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[mortician]]></name></author>
		<updated>2003-10-11T08:46:13-04:00</updated>

		<published>2003-10-11T08:46:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28262#p28262</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28262#p28262"/>
		<title type="html"><![CDATA[List Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28262#p28262"><![CDATA[
I think you don't want to use <em class="text-italics">read</em> to read the lines of your file, but <em class="text-italics">gets</em><br><br>Without an exact number of characters to <em class="text-italics">read</em> that command will read everything until it encounters EOF,  <em class="text-italics">gets</em> reads a single line from the specified channel.  <br><div class="codebox"><p>Code: </p><pre><code> set fo [open "$db" r]while { ![eof $fo] } {  set buffer [gets $fo]  putserv "NOTICE $nick : $buffer "} close $fo</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1942">mortician</a> — Sat Oct 11, 2003 8:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FiskerEnDK]]></name></author>
		<updated>2003-10-11T08:19:46-04:00</updated>

		<published>2003-10-11T08:19:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28256#p28256</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28256#p28256"/>
		<title type="html"><![CDATA[List Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28256#p28256"><![CDATA[
I made this script for listing in a chan..<br>When i type !list or @list it will show line for line from the text file "list.db"<br>But its only showed the first line of fine anyone can help me with this?<br> <br>Best Regards<br>FiskerEn<br><br>&lt;code&gt;<br><br>set channel "channel"<br>set db eggdrop/scripts/list.db<br><br>bind pub - @list pub:list<br>bind pub - !list pub:list<br><br>proc pub:list {nick uhost hand chan text} {<br>global channel db<br><br>  set fo [open "$db" r]<br>  while { ![eof $fo]} {<br><br>  set buffer [read $fo]<br>  putserv "NOTICE $nick : $buffer "<br>  }<br>}<br><br>putlog "Script loaded: list"<br><br>&lt;/code&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2536">FiskerEnDK</a> — Sat Oct 11, 2003 8:19 am</p><hr />
]]></content>
	</entry>
	</feed>
