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

	<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>2005-02-04T20:35:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2005-02-04T20:35:43-04:00</updated>

		<published>2005-02-04T20:35:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46270#p46270</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46270#p46270"/>
		<title type="html"><![CDATA[Re: split text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46270#p46270"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set f [open $file]</code></pre></div></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Feb 04, 2005 8:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-02-04T16:46:57-04:00</updated>

		<published>2005-02-04T16:46:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46265#p46265</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46265#p46265"/>
		<title type="html"><![CDATA[split text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46265#p46265"><![CDATA[
Tip: You need to open the file in a way, so check <a href="http://tmml.sourceforge.net/doc/tcl/open.html" class="postlink">this</a> out.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Feb 04, 2005 4:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-04T15:12:00-04:00</updated>

		<published>2005-02-04T15:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46263#p46263</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46263#p46263"/>
		<title type="html"><![CDATA[split text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46263#p46263"><![CDATA[
ok if you want to split up the text via a full stop you could use something like this.<br><div class="codebox"><p>Code: </p><pre><code>proc output { nick channel msg } {    # Build string    set strPrepend "PRIVMSG $channel :"            # Send it out    set line_array [split $msg "."]    foreach line $line_array { putserv "$strPrepend$line" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Fri Feb 04, 2005 3:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mdnkia]]></name></author>
		<updated>2005-02-04T14:49:35-04:00</updated>

		<published>2005-02-04T14:49:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46262#p46262</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46262#p46262"/>
		<title type="html"><![CDATA[split text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46262#p46262"><![CDATA[
hmmm... thx for the reply but i know this code already i got much lines on file.txt and it will be so hard to edit all the text...  <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=5962">mdnkia</a> — Fri Feb 04, 2005 2:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-04T14:34:35-04:00</updated>

		<published>2005-02-04T14:34:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46260#p46260</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46260#p46260"/>
		<title type="html"><![CDATA[split text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46260#p46260"><![CDATA[
if you want it to output to a newline you can use <div class="codebox"><p>Code: </p><pre><code>\n</code></pre></div>ie<br><div class="codebox"><p>Code: </p><pre><code>this is the line i want to display on the first line.\nThis will be displayed on the secondline.\nAnd this the third etc etc etc</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Fri Feb 04, 2005 2:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mdnkia]]></name></author>
		<updated>2005-02-04T14:20:08-04:00</updated>

		<published>2005-02-04T14:20:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46257#p46257</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46257#p46257"/>
		<title type="html"><![CDATA[split text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46257#p46257"><![CDATA[
hello i have this code<div class="codebox"><p>Code: </p><pre><code>set f [open $file] seek $f $pos if {[gets $f line]&gt;-1} { putserv "privmsg $chan :$line" </code></pre></div>it will read line by line from the file.txt the problem is i have long sentence in 1 line is there any way to split it? when the script read . [dot] it will do new privmsg and continue the story.<br>anyone know it please i really stuck on it<br>thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5962">mdnkia</a> — Fri Feb 04, 2005 2:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
