Difference between revisions of "love.filesystem.newFileData"

m
Line 15: Line 15:
 
== See Also ==
 
== See Also ==
 
* [[parent::love.filesystem]]
 
* [[parent::love.filesystem]]
 +
* [[Constructs::FileData]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Creates a new [[FileData]] object.}}
 
{{#set:Description=Creates a new [[FileData]] object.}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.filesystem.newFileData}}
 
{{i18n|love.filesystem.newFileData}}

Revision as of 06:18, 28 August 2012

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