Difference between revisions of "File"
Line 1: | Line 1: | ||
Represents a file on the filesystem. | Represents a file on the filesystem. | ||
== Constructors == | == Constructors == | ||
− | {{#ask: [[Category:Functions]] [[Constructs::File]] | + | {{#ask: [[Category:Functions]] [[Constructs::File]] [[Since::<071]] |
| headers=hide | | headers=hide | ||
| default=None. | | default=None. | ||
Line 8: | Line 8: | ||
== Functions == | == Functions == | ||
These functions have parentheses in odd places. This is because the ''File:'' namespace is reserved in Mediawiki. | These functions have parentheses in odd places. This is because the ''File:'' namespace is reserved in Mediawiki. | ||
− | {{#ask: [[Category:Functions]] [[parent::File]] | + | {{#ask: [[Category:Functions]] [[parent::File]] OR [[parent::Object]] [[Since::<071]] |
− | |||
− | |||
− | |||
− | |||
| headers=hide | | headers=hide | ||
| ?Description | | ?Description | ||
}} | }} | ||
== Enums == | == Enums == | ||
− | {{#ask: [[Category:Enums]] [[parent::File]] | + | {{#ask: [[Category:Enums]] [[parent::File]] [[Since::<071]] |
| headers=hide | | headers=hide | ||
| ?Description | | ?Description | ||
Line 27: | Line 23: | ||
[[Category:Types]] | [[Category:Types]] | ||
{{#set:Description=Represents a file on the filesystem.}} | {{#set:Description=Represents a file on the filesystem.}} | ||
+ | {{#set:Since=000}} | ||
== Other Languages == | == Other Languages == | ||
{{i18n|File}} | {{i18n|File}} |
Revision as of 09:36, 25 March 2011
Represents a file on the filesystem.
Constructors
love.filesystem.newFile | Creates a new File object. |
Functions
These functions have parentheses in odd places. This is because the File: namespace is reserved in Mediawiki.
(File):close | Closes a File. |
(File):eof | If the end-of-file has been reached |
(File):flush | Flushes any buffered written data in the file to disk. |
(File):getBuffer | Gets the buffer mode of a file. |
(File):getFilename | Gets the filename that the File object was created with. |
(File):getMode | Gets the FileMode the file has been opened with. |
(File):getSize | Returns the file size. |
(File):isEOF | Gets whether end-of-file has been reached. |
(File):isOpen | Gets whether the file is open. |
(File):lines | Iterate over all the lines in a file. |
(File):open | Open the file for write, read or append. |
(File):read | Read a number of bytes from a file |
(File):seek | Seek to a position in a file |
(File):setBuffer | Sets the buffer mode for a file opened for writing or appending. |
(File):tell | Returns the position in the file. |
(File):write | Write data to a file. |
Body | Bodies are objects with velocity and position. |
CircleShape | Circle extends Shape and adds a radius and a local position. |
Contact | Contacts are objects created to manage collisions in worlds. |
Data | The superclass of all data. |
Decoder | An object which can gradually decode a sound file. |
DistanceJoint | Keeps two bodies at the same distance. |
Drawable | Superclass for all things that can be drawn on screen. |
File | Represents a file on the filesystem. |
FileData | Data representing the contents of a file. |
Font | Defines the shape of characters than can be drawn onto the screen. |
FontData | A FontData represents a font. |
Framebuffer | Off-screen render target. |
GearJoint | Keeps bodies together in such a way that they act like gears. |
GlyphData | A GlyphData represents a drawable symbol of a font. |
Image | Drawable image type. |
ImageData | Raw (decoded) image data. |
Joint | Attach multiple bodies together to interact in unique ways. |
MouseJoint | For controlling objects with the mouse. |
Object:type | Gets the type of the object as a string. |
Object:typeOf | Checks whether an object is of a certain type. |
ParticleSystem | Used to create cool effects, like fire. |
PolygonShape | Polygon is a convex polygon with up to 8 sides. |
PrismaticJoint | Restricts relative motion between Bodies to one shared axis. |
PulleyJoint | Allows you to simulate bodies connected through pulleys. |
Quad | A quadrilateral with texture coordinate information. |
Rasterizer | A Rasterizer represents font data and glyphs. |
RevoluteJoint | Allow two Bodies to revolve around a shared point. |
Shape | Shapes are objects used to control mass and collisions. |
Shape (Français) | Les Shapes sont des objets pour contrôler les masses et les collisions. |
SoundData | Contains raw audio samples. |
Source | A Source represents audio you can play back. |
SpriteBatch | Store image positions in a buffer, and draw it in one call. |
SpriteBatch (Français) | Stock des positions d'image dans un tampon, puis les trace en un seul appel. |
Thread | A Thread represents a thread. |
... further results |
Enums
FileMode | The different modes you can open a File in. |
Supertypes
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