Difference between revisions of "love.filesystem.newFileData"

m (included link to other languages)
Line 1: Line 1:
{{newin|[[0.7.0]]|type=function}}
+
{{newin|[[0.7.0]]|070|type=function}}
 
Creates a new [[FileData]] object.
 
Creates a new [[FileData]] object.
  

Revision as of 09:41, 25 March 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