File (Tiếng Việt)

Biểu diễn một file (tập tin) trong filesystem.

Constructor

love.filesystem.newFile Creates a new File object.

Hàm

Các hàm sau đây có ngoặc đơn ở những vị trí khác thường; để tránh cho không gian tên File: trùng lặp với cú pháp dành riêng trong Mediawiki.

(File):close Closes a file
(File):eof If the end-of-file has been reached
(File):getSize Returns the file size
(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):write Write data to a file
Object:type Gets the type of the object as a string.
Object:typeOf Checks whether an object is of a certain type.

Các kiểu liệt kê

FileMode The different modes you can open a file in.

Kiểu cấp trên

Object

Xem thêm


Ngôn ngữ khác

Personal tools