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

	<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-05-04T01:13:47-04:00</updated>

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

		<entry>
		<author><name><![CDATA[snow-ball]]></name></author>
		<updated>2004-05-04T01:13:47-04:00</updated>

		<published>2004-05-04T01:13:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36087#p36087</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36087#p36087"/>
		<title type="html"><![CDATA[Somebody know any other faster method to update a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36087#p36087"><![CDATA[
<blockquote class="uncited"><div>What do you mean by faster? Do you mean less code or less cpu?<br><br>With your example, name3 was the last name. Do you always want to update only the last name?</div></blockquote>Hi<br><br>My current data base have a little more of 700 lines. <br>Is any other way to update the information more quickly ?<br>Or my current code do a good job?<br><br>tks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=262">snow-ball</a> — Tue May 04, 2004 1:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-05-03T16:38:13-04:00</updated>

		<published>2004-05-03T16:38:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36080#p36080</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36080#p36080"/>
		<title type="html"><![CDATA[Somebody know any other faster method to update a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36080#p36080"><![CDATA[
What do you mean by faster? Do you mean less code or less cpu?<br><br>With your example, name3 was the last name. Do you always want to update only the last name?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon May 03, 2004 4:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[snow-ball]]></name></author>
		<updated>2004-05-03T16:10:10-04:00</updated>

		<published>2004-05-03T16:10:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36078#p36078</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36078#p36078"/>
		<title type="html"><![CDATA[Somebody know any other faster method to update a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36078#p36078"><![CDATA[
Hi<br><br>Any other faster method to update a file?<br><br>For example i have a file to store some information like names.<br><br>name1 xxx xxx<br>name2 yyy yyy<br>name3 zzz zzz<br><br>If i want to update the name3 <br><br>I use this code:<br>  <br>set name [lindex $text 1]<br>set update [lrange $text 2 end]<br><br>file copy names.dat names.back<br>set back [open names.back r]<br>set file [open names.dat w]<br><br>while {![eof $back]} {<br>  set line [gets $file]<br>  if {[lindex $line 0] == $name]} {<br>     puts $file "$names [list $update]"<br>     continue<br>  }<br>  puts $file $line<br>}<br>close $file; close $back<br>file delete names.back<br><br>Tks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=262">snow-ball</a> — Mon May 03, 2004 4:10 pm</p><hr />
]]></content>
	</entry>
	</feed>
