<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cheatengine.org/index.php?action=history&amp;feed=atom&amp;title=Lua%3AsaveTable</id>
	<title>Lua:saveTable - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cheatengine.org/index.php?action=history&amp;feed=atom&amp;title=Lua%3AsaveTable"/>
	<link rel="alternate" type="text/html" href="https://wiki.cheatengine.org/index.php?title=Lua:saveTable&amp;action=history"/>
	<updated>2026-05-22T04:51:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>https://wiki.cheatengine.org/index.php?title=Lua:saveTable&amp;diff=5790&amp;oldid=prev</id>
		<title>TheyCallMeTim13: Created page with 'Category:Lua '''function''' saveTable(''fileName'', ''protect'' OPTIONAL)  Saves the current table. If protect is provided and set to true and the filename has the &quot;.CETRAINE…'</title>
		<link rel="alternate" type="text/html" href="https://wiki.cheatengine.org/index.php?title=Lua:saveTable&amp;diff=5790&amp;oldid=prev"/>
		<updated>2018-04-18T02:47:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;&lt;a href=&quot;/index.php?title=Category:Lua&quot; title=&quot;Category:Lua&quot;&gt;Category:Lua&lt;/a&gt; &amp;#039;&amp;#039;&amp;#039;function&amp;#039;&amp;#039;&amp;#039; saveTable(&amp;#039;&amp;#039;fileName&amp;#039;&amp;#039;, &amp;#039;&amp;#039;protect&amp;#039;&amp;#039; OPTIONAL)  Saves the current table. If protect is provided and set to true and the filename has the &amp;quot;.CETRAINE…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Lua]]&lt;br /&gt;
'''function''' saveTable(''fileName'', ''protect'' OPTIONAL)&lt;br /&gt;
&lt;br /&gt;
Saves the current table. If protect is provided and set to true and the filename has the &amp;quot;.CETRAINER&amp;quot; extension, it will protect it from reading normally.&lt;br /&gt;
&lt;br /&gt;
===Function Parameters===&lt;br /&gt;
{|width=&amp;quot;85%&amp;quot; cellpadding=&amp;quot;10%&amp;quot; cellpadding=&amp;quot;5%&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
!align=&amp;quot;left&amp;quot;|Parameter&lt;br /&gt;
!align=&amp;quot;left&amp;quot;|Type&lt;br /&gt;
!style=&amp;quot;width: 80%;background-color:white;&amp;quot; align=&amp;quot;left&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
|fileName&lt;br /&gt;
|String&lt;br /&gt;
|The name of the file to save cheat table to&lt;br /&gt;
|-&lt;br /&gt;
|protect&lt;br /&gt;
|Boolean&lt;br /&gt;
|If set to true and the filename has the &amp;quot;.CETRAINER&amp;quot; extension, it will protect it from reading normally&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
saveTable('SomeGame.CT')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
saveTable('SomeGame.CETRAINER', true)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{LuaSeeAlso}}&lt;br /&gt;
&lt;br /&gt;
=== Related Functions ===&lt;br /&gt;
* [[Lua:findTableFile|loadTable]]&lt;br /&gt;
&lt;br /&gt;
=== Related Classes ===&lt;br /&gt;
* [[Lua:Class:TableFile|TableFile]]&lt;br /&gt;
* [[Lua:Class:MemoryStream|MemoryStream]]&lt;/div&gt;</summary>
		<author><name>TheyCallMeTim13</name></author>
		
	</entry>
</feed>