Difference between revisions of "love.filesystem.newFileData"

(Created page with '{{newin|0.7.0|type=function}} Creates a new FileData object. == Function == === Synopsis === <source lang="lua"> data = love.filesystem.newFileData( contents, name, deco…')
 
m (included link to other languages)
Line 17: Line 17:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Creates a new [[FileData]] object.}}
 
{{#set:Description=Creates a new [[FileData]] object.}}
 +
== Other Languages ==
 +
{{i18n|love.filesystem.newFileData}}

Revision as of 07:37, 4 January 2011

Available since LÖVE 0.7.0
This function is not supported in earlier versions.

Creates a new FileData object.

Function

Synopsis

data = love.filesystem.newFileData( contents, name, decoder )

Arguments

string contents
The contents of the file.
string name
The name of the file.
FileDecoder decoder
The method to use when decoding the contents.

Returns

FileData data
Your new FileData.

See Also

Other Languages