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

	<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>2010-10-11T05:54:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[skgsergio]]></name></author>
		<updated>2010-10-11T05:54:38-04:00</updated>

		<published>2010-10-11T05:54:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94686#p94686</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94686#p94686"/>
		<title type="html"><![CDATA[How to manage a simple database (text file)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94686#p94686"><![CDATA[
I read and saw some scripts using it but I didn't know if it's a good way but I will test it.<br>About searching... well I searched by "text file database" an didn't found that post.<br><br>Thx for all.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11382">skgsergio</a> — Mon Oct 11, 2010 5:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-10-10T21:19:33-04:00</updated>

		<published>2010-10-10T21:19:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94682#p94682</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94682#p94682"/>
		<title type="html"><![CDATA[Re: How to manage a simple database (text file)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94682#p94682"><![CDATA[
Just thinking about it ( I haven't experimented and tried it) ... could you read your text file into a list?<br>( <a href="http://forum.egghelp.org/viewtopic.php?t=6885" class="postlink">http://forum.egghelp.org/viewtopic.php?t=6885</a> )<br><br>Then, manipulate the list... searching, replacing, etc.<br>( ex:  <a href="http://www.tcl.tk/man/tcl8.5/TclCmd/lreplace.htm" class="postlink">http://www.tcl.tk/man/tcl8.5/TclCmd/lreplace.htm</a><br>and<br><a href="http://www.tcl.tk/man/tcl8.5/TclCmd/lsearch.htm" class="postlink">http://www.tcl.tk/man/tcl8.5/TclCmd/lsearch.htm</a>  )<br><br>When done, write the list back to text file, overwriting the original file.<br><br>Is that viable?<br><br><br>p.s.  There is a high probability that I've read about doing it this way, somewhere in the past.   Most likely, that would be this forum.   In other words, it might be a good idea to try some searches here...  you might find it described in more detail.   <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=10420">willyw</a> — Sun Oct 10, 2010 9:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[skgsergio]]></name></author>
		<updated>2010-10-10T20:02:30-04:00</updated>

		<published>2010-10-10T20:02:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94681#p94681</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94681#p94681"/>
		<title type="html"><![CDATA[How to manage a simple database (text file)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94681#p94681"><![CDATA[
I'm trying to do a simple database with this schema using text file:<br><div class="codebox"><p>Code: </p><pre><code>Nick1 Number NumberNick2 Number NumberNick3 Number Number...</code></pre></div>How to use data is simple and how to search or insert a new line is easy.<br><br>But I don't know how to do things like modify an entry (or delete but I don't need delete for my script).<br><br>Anyone can help me?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11382">skgsergio</a> — Sun Oct 10, 2010 8:02 pm</p><hr />
]]></content>
	</entry>
	</feed>
