Difference between revisions of "love.filesystem.newFile"
(Constructs File) |
m |
||
Line 23: | Line 23: | ||
{{#set:Description=Creates a new File object. | {{#set:Description=Creates a new File object. | ||
}} | }} | ||
+ | == Other Languages == | ||
+ | {{i18n|love.filesystem.newFile}} |
Revision as of 19:10, 18 November 2010
Creates a new File object. It needs to be opened before it can be accessed.
Contents
Function
Synopsis
file = love.filesystem.newFile( filename )
Arguments
string filename
- The filename of the file to read.
Returns
File file
- The new File object.
Examples
Open a file and read everything
file = love.filesystem.newFile("data.txt")
file:open('r')
data = file:read()
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info