Difference between revisions of "love.filesystem.newFileData"

m
m
Line 10: Line 10:
 
{{param|string|contents|The contents of the file.}}
 
{{param|string|contents|The contents of the file.}}
 
{{param|string|name|The name of the file.}}
 
{{param|string|name|The name of the file.}}
{{param|FileDecoder|decoder|The method to use when decoding the contents.}}
+
{{param|FileDecoder|decoder ("file")|The method to use when decoding the contents.}}
 
=== Returns ===
 
=== Returns ===
 
{{param|FileData|data|Your new FileData.}}
 
{{param|FileData|data|Your new FileData.}}

Revision as of 11:43, 31 October 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 ("file")
The method to use when decoding the contents.

Returns

FileData data
Your new FileData.

See Also

Other Languages