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

	<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>2013-01-30T15:00:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-01-30T15:00:56-04:00</updated>

		<published>2013-01-30T15:00:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100847#p100847</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100847#p100847"/>
		<title type="html"><![CDATA[read from a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100847#p100847"><![CDATA[
Or even better, if you can save that file in a json format is then very easy to parse it and get what results you wish from it.<br><br>Also, instead of an array you can use a <em class="text-italics">dictionary</em> (<a href="http://www.tcl.tk/man/tcl8.5/TclCmd/dict.htm" class="postlink">dict</a>) to store stuff in. you can even convert dict to json and vice-verse. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jan 30, 2013 3:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-01-30T08:54:58-04:00</updated>

		<published>2013-01-30T08:54:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100843#p100843</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100843#p100843"/>
		<title type="html"><![CDATA[read from a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100843#p100843"><![CDATA[
You should try make the script using array it would be much easier for you to read the information and display it anywhere you want in any form you want. If you are still interested in this script i can guide you creating the script, if so reply to this topic and we will get started when i am around and have time.<br><br>NOTE: I don`t use files like that to store data. I only use array to store data's into the eggdrop . Much easier (for me)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Wed Jan 30, 2013 8:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ircaddict]]></name></author>
		<updated>2012-03-03T20:05:42-04:00</updated>

		<published>2012-03-03T20:05:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98928#p98928</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98928#p98928"/>
		<title type="html"><![CDATA[read from a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98928#p98928"><![CDATA[
Hello,<br>I have some problems with reading from a file and then output that read into a channel, so thing is like this I wrote a script which stores some data into a txt file in this way:<br><strong class="text-strong">order</strong> *here goes order* <br><strong class="text-strong">nick</strong> *nick who set orders*<br><strong class="text-strong">time</strong> *time when orders were set*<br><strong class="text-strong">day</strong> *day when orders were set*<br>and so on<br>so now part that I can`t figure out is:<br>I would like that when someone writes .order on channel bot would open up txt file and search for  word in it (obviusly <strong class="text-strong">order</strong>) and then output everything thats behind behind that word, for .ordersby output would be nick who set orders so bot would have to open the file find word <strong class="text-strong">nick</strong> and output everything behind that word... and so on. <br>One more thing I need help with is time and date:<br>lets say that my day 1 started on 1/1/2012 @ 8h local computer  time, now I would like to see my date and time to be:<br>day 64<br>time 13:03<br>Thx in advance with any help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11930">ircaddict</a> — Sat Mar 03, 2012 8:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
