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

	<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-08-02T19:41:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-08-02T19:41:09-04:00</updated>

		<published>2004-08-02T19:41:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39383#p39383</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39383#p39383"/>
		<title type="html"><![CDATA[problem with reading from txt file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39383#p39383"><![CDATA[
Simply counting the lines one by one  should do it...<br><div class="codebox"><p>Code: </p><pre><code>set mailfile "/home/user/mailfile.txt"set readfrom 11bind dcc -|- readmail dcc:readmailproc dcc:readmail {hand idx arg} { global mailfile readfrom set counter 0 set file [open $mailfile r]  while {![eof $file]} {    incr counter 1    set line [gets $file]    if {$counter &gt;= $readfrom} {      putidx $idx "$line"    }   } close $file}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Mon Aug 02, 2004 7:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[misterys]]></name></author>
		<updated>2004-08-02T17:02:39-04:00</updated>

		<published>2004-08-02T17:02:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39377#p39377</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39377#p39377"/>
		<title type="html"><![CDATA[problem with reading from txt file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39377#p39377"><![CDATA[
Hi<br><br>i have the following problem:<br>i want to open a mail file, and read out from line 11 till the end and put line after line in a channel...<br><br>i tried hours but this [censored] does not work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>here is the proc: <div class="codebox"><p>Code: </p><pre><code>proc readmail {as df gh hj rt} {   global basicfile lastmail lastmailid  mailname tmpfile tmpmail  set foo [open $tmpmail r] set line [read $foo] foreach line [split $line "\n"]  {set mailid2  [lindex $line [expr [llength $line] -10]]set mailname1 [lindex $line [expr [llength $line] -1]]if { $mailid2  == $rt } {puthelp "privmsg #bla :$mailid2 $mailname1"## maildatei oeffnen ##set mailfile2 "/Maildir/cur/$mailname1:2," set foo [open $mailfile2 r] set line [read -nonewline $foo] set lines [split $line "\n"] putserv "privmsg #bla :$lines"}}catch {close $foo} catch {close $foo} }</code></pre></div><br>sorry for my bad english <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2941">misterys</a> — Mon Aug 02, 2004 5:02 pm</p><hr />
]]></content>
	</entry>
	</feed>
