Difference between revisions of "File"
m |
(Grammatical mistake!) |
||
Line 20: | Line 20: | ||
* [[parent::love.filesystem]] | * [[parent::love.filesystem]] | ||
[[Category:Types]] | [[Category:Types]] | ||
− | {{#set:Description=Represents | + | {{#set:Description=Represents a file on the filesystem.}} |
Revision as of 02:13, 28 July 2010
Represents a file on the filesystem.
Contents
Constructors
love.filesystem.newFile | Creates a new File object. |
love.filesystem.openFile | Opens a new File object, which represents an existing or new file on disk. |
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. |
BezierCurve | A Bézier curve object that can evaluate and render Bézier curves of arbitrary degree. |
Body | Bodies are objects with velocity and position. |
ByteData | Data object containing arbitrary bytes in an contiguous memory. |
Canvas | Off-screen render target. |
Canvas (Nederlands) | Off-screen render target. |
ChainShape | A ChainShape consists of multiple line segments. |
Channel | An object which can be used to send and receive data between different threads. |
CircleShape | Circle extends Shape and adds a radius and a local position. |
CompressedData | Byte data compressed using a specific algorithm. |
CompressedImageData | Compressed image data designed to stay compressed in RAM and on the GPU. |
Contact | Contacts are objects created to manage collisions in worlds. |
Cursor | Represents a hardware cursor. |
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. |
DroppedFile | Represents a file dropped from the window. |
EdgeShape | EdgeShape is a line segment. |
File | Represents a file on the filesystem. |
FileData | Data representing the contents of a file. |
Fixture | Fixtures attach shapes to bodies. |
Font | Defines the shape of characters than can be drawn onto the screen. |
FontData | A FontData represents a font. |
Framebuffer | Off-screen render target. |
FrictionJoint | A FrictionJoint applies friction to a body. |
GearJoint | Keeps bodies together in such a way that they act like gears. |
GlyphData | A GlyphData represents a drawable symbol of a font. |
GraphicsBuffer | Low-level data stored in graphics memory, including arrays of vertices, vertex indices, and custom collections of data accessible in Shaders. |
Image | Drawable image type. |
ImageData | Raw (decoded) image data. |
Joint | Attach multiple bodies together to interact in unique ways. |
Joystick | Represents a physical joystick. |
Mesh | A 2D polygon mesh used for drawing arbitrary textured shapes. |
MotorJoint | Controls the relative motion between two Bodies |
... further results |
Enums
BufferMode | Buffer modes for File objects. |
FileMode | The different modes you can open a File in. |