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

	<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>2009-06-03T11:05:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2009-06-03T11:05:35-04:00</updated>

		<published>2009-06-03T11:05:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89067#p89067</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89067#p89067"/>
		<title type="html"><![CDATA[Help on where to begin]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89067#p89067"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set text {  write some text here if like ..  that the command should write to the file}if {[catch {open file.txt 'w'} w]} {  #  # either puts $w $text  #  # or line by line  #  foreach {x} [split $text \n] {    puts $w $x  }   close $w} </code></pre></div>it all depends, .. a is append w is write and r is read i see you use a .. depends what you want to do remember that w destroys all data currently stored in file.txt<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Jun 03, 2009 11:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BlackTux]]></name></author>
		<updated>2009-05-30T03:05:41-04:00</updated>

		<published>2009-05-30T03:05:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89010#p89010</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89010#p89010"/>
		<title type="html"><![CDATA[Help on where to begin]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89010#p89010"><![CDATA[
Hi I am kinda new to tcl and eggdrop scripting. I can do the basic bind and proc functions  with little to no trouble.<br>I am working on a script now that writes certain text to a file.<br>Then allows that text to be searchable only allowing 10 results.<br><br>I have the gathering of the info just not sure how to do the searching part. I have tried to look at other searching script and got lost about half way through.<br><br>Here is what I have so far:<br><blockquote class="uncited"><div>set pack_file_dir  "scripts/custom/packs.txt"<br>set pack_list ""<br>set pack_list_chan "&lt;gathering channel&gt;"<br>set pack_chan "&lt;searching channel&gt;"<br><br><br>bind pubm - *New* Log:Tor<br>bind pubm - !torsearch* Log:Tor<br><br><br>proc Log:Tor {nick host hand chan arg} {<br>global pack_file pack_file_dir<br> set pack_file [open $pack_file_dir a]<br> puts $pack_file $arg<br> close $pack_file<br>}</div></blockquote>Thank You<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6617">BlackTux</a> — Sat May 30, 2009 3:05 am</p><hr />
]]></content>
	</entry>
	</feed>
