File

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.Added since 0.9.0
(File):getBufferGets the buffer mode of a file.Added since 0.9.0
(File):getModeGets the FileMode the file has been opened with.Added since 0.9.0
(File):getSizeReturns the file size.
(File):isOpenGets whether the file is open.Added since 0.9.0
(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.Added since 0.9.0
(File):tellReturns the position in the file
(File):writeWrite data to a file.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.

Enums

BufferModeBuffer modes for File objects.Added since 0.9.0
FileModeThe different modes you can open a File in.

Supertypes

See Also


Other Languages

Personal tools