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
 
| ?Description
 
}}
 
{{#ask: [[Category:Functions]] [[parent::Object]]
 
 
| 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.newFileCreates a new File object.

Functions

These functions have parentheses in odd places. This is because the File: namespace is reserved in Mediawiki.

(File):closeCloses a File.
(File):eofIf the end-of-file has been reached
(File):flushFlushes any buffered written data in the file to disk.
(File):getBufferGets the buffer mode of a file.
(File):getFilenameGets the filename that the File object was created with.
(File):getModeGets the FileMode the file has been opened with.
(File):getSizeReturns the file size.
(File):isEOFGets whether end-of-file has been reached.
(File):isOpenGets whether the file is open.
(File):linesIterate over all the lines in a file.
(File):openOpen the file for write, read or append.
(File):readRead a number of bytes from a file
(File):seekSeek to a position in a file
(File):setBufferSets the buffer mode for a file opened for writing or appending.
(File):tellReturns the position in the file.
(File):writeWrite data to a file.
BodyBodies are objects with velocity and position.
CircleShapeCircle extends Shape and adds a radius and a local position.
ContactContacts are objects created to manage collisions in worlds.
DataThe superclass of all data.
DecoderAn object which can gradually decode a sound file.
DistanceJointKeeps two bodies at the same distance.
DrawableSuperclass for all things that can be drawn on screen.
FileRepresents a file on the filesystem.
FileDataData representing the contents of a file.
FontDefines the shape of characters than can be drawn onto the screen.
FontDataA FontData represents a font.
FramebufferOff-screen render target.
GearJointKeeps bodies together in such a way that they act like gears.
GlyphDataA GlyphData represents a drawable symbol of a font.
ImageDrawable image type.
ImageDataRaw (decoded) image data.
JointAttach multiple bodies together to interact in unique ways.
MouseJointFor controlling objects with the mouse.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.
ParticleSystemUsed to create cool effects, like fire.
PolygonShapePolygon is a convex polygon with up to 8 sides.
PrismaticJointRestricts relative motion between Bodies to one shared axis.
PulleyJointAllows you to simulate bodies connected through pulleys.
QuadA quadrilateral with texture coordinate information.
RasterizerA Rasterizer represents font data and glyphs.
RevoluteJointAllow two Bodies to revolve around a shared point.
ShapeShapes are objects used to control mass and collisions.
Shape (Français)Les Shapes sont des objets pour contrôler les masses et les collisions.
SoundDataContains raw audio samples.
SourceA Source represents audio you can play back.
SpriteBatchStore 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.
ThreadA Thread represents a thread.
... further results

Enums

FileModeThe different modes you can open a File in.

Supertypes

Object

See Also


Other Languages