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

	<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>2006-07-19T03:56:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-07-18T07:48:21-04:00</updated>

		<published>2006-07-18T07:48:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64695#p64695</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64695#p64695"/>
		<title type="html"><![CDATA[Weird problem with a txt-file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64695#p64695"><![CDATA[
Thank you. It works perfectly.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Tue Jul 18, 2006 7:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-07-19T03:56:37-04:00</updated>

		<published>2006-07-17T18:38:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64683#p64683</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64683#p64683"/>
		<title type="html"><![CDATA[Weird problem with a txt-file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64683#p64683"><![CDATA[
Hint:<div class="codebox"><p>Code: </p><pre><code>      while {![eof $fd]} {         lappend list [gets $fd]      }</code></pre></div>and<div class="codebox"><p>Code: </p><pre><code>         set lines [split [read $fd] \n]</code></pre></div>are equivalent (except for saving into 2 diffrent vars).<br>btw. $lines will be an empty string if *edit* there is only one line */edit*.<br><br>Advise: why not simply<div class="codebox"><p>Code: </p><pre><code>      while {![eof $fd]} {         putquick "NOTICE $nick :[gets $fd]"      }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Jul 17, 2006 6:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-07-17T07:27:39-04:00</updated>

		<published>2006-07-17T07:27:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64673#p64673</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64673#p64673"/>
		<title type="html"><![CDATA[Weird problem with a txt-file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64673#p64673"><![CDATA[
Hello!<br>I made this script:<div class="codebox"><p>Code: </p><pre><code>bind pub - !modlog atmlogproc atmlog {nick uhost hand chan arg} {  set fd [open $::atmfile r]      while {![eof $fd]} {         lappend list [gets $fd]         set lines [split [read $fd] \n]      }         close $fd                  foreach x $lines {         putquick "NOTICE $nick :$x"       }            return 1}</code></pre></div>I can't see a mistake in it and an error message does not occur. Actually this script should read a textfile and give all lines with a notice to a user. So, where is the mistake?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Mon Jul 17, 2006 7:27 am</p><hr />
]]></content>
	</entry>
	</feed>
