Difference between revisions of "love.filesystem.openNativeFile"
(Created page with "{{newin|12.0|120}} Opens a new File object outside of love.filesystem paths. {{notice|This documents a function for a future version of LÖVE and may be changed...") |
m (Fix newin) |
||
Line 1: | Line 1: | ||
− | {{newin|[[12.0]]|120}} | + | {{newin|[[12.0]]|120|type=function}} |
− | |||
Opens a new [[File]] object outside of [[love.filesystem]] paths. | Opens a new [[File]] object outside of [[love.filesystem]] paths. | ||
Latest revision as of 15:33, 23 January 2025
Available since LÖVE 12.0 |
This function is not supported in earlier versions. |
Opens a new File object outside of love.filesystem paths.
This documents a function for a future version of LÖVE and may be changed before final release. |
Function
Synopsis
file, errorstr = love.filesystem.openNativeFile( filename, mode )
Arguments
string filename
- The full platform-dependent path to the file.
FileMode mode
- The mode to open the file in.
Returns
File file
- The new File object, or nil if an error occurred.
string errorstr
- The error string if an error occurred.
Notes
Unlike love.filesystem.openFile which operates on restricted love.filesystem paths, this is more similar to Lua standard io.open.
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