Difference between revisions of "Lua:createTableFile"

From Cheat Engine
Jump to navigation Jump to search
(Replaced content with '<span style="font-size:25px;color:red">Sorry! Content not available.</span>')
Line 1: Line 1:
[[Category:Lua]]
+
<span style="font-size:25px;color:red">Sorry! Content not available.</span>
'''function''' createTableFile(''fileName'', ''filePath'' OPTIONAL) ''':''' TableFile
 
 
 
Creates and adds a new [[Lua:Class:TableFile|TableFile]] object representing a file stored with the cheat table.
 
You can retrieve the data as a [[Lua:Class:MemoryStream|MemoryStream]] or save it to disk.
 
 
 
===Function Parameters===
 
{|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0"
 
!align="left"|Parameter
 
!align="left"|Type
 
!style="width: 80%;background-color:white;" align="left"|Description
 
|-
 
|fileName
 
|String
 
|The name of the file to be added to the cheat table
 
|-
 
|filePath
 
|String
 
|The path to the file to be added to the cheat table
 
|}
 
 
 
== Examples ==
 
<pre>
 
local file = createTableFile('protected.wav')
 
playSound(file)
 
</pre>
 
<pre><nowiki>
 
local file = createTableFile('protected.wav', [[C:\SomeDirectory\MySounds]])
 
playSound(file)
 
</nowiki></pre>
 
 
 
=== Adding a File ===
 
 
 
To add a file to your table, open the '''Table''' menu and pick '''Add File''':
 
 
 
[[Image:AddFile.png]]
 
 
 
Pick the file and it will be added to the table with the same name and show
 
up as a separate entry below '''Add file''' in the '''Table''' menu.  From that
 
you can rename it, save it out to disk, or delete it:
 
 
 
[[Image:AddedFileMenu.png]]
 
 
 
 
 
{{LuaSeeAlso}}
 
 
 
=== Related Functions ===
 
* [[Lua:findTableFile|findTableFile]]
 
 
 
=== Related Classes ===
 
* [[Lua:Class:TableFile|TableFile]]
 
* [[Lua:Class:MemoryStream|MemoryStream]]
 

Revision as of 15:57, 16 March 2019

Sorry! Content not available.