diff options
| author | ruki <[email protected]> | 2020-07-21 00:32:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-07-21 00:32:46 +0800 |
| commit | a985a18ea4fd2bd8f5bb56f55292a19ba584409c (patch) | |
| tree | fb777941ecf1fc73dbd290ce03610cb91278f13b /xmake/core/base/io.lua | |
| parent | 8aa0279fa83f1d90f4c853da316de4e54c3d33d7 (diff) | |
improve json
Diffstat (limited to 'xmake/core/base/io.lua')
| -rw-r--r-- | xmake/core/base/io.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/xmake/core/base/io.lua b/xmake/core/base/io.lua index 796704dd9..936bd5868 100644 --- a/xmake/core/base/io.lua +++ b/xmake/core/base/io.lua @@ -158,6 +158,11 @@ function _file:size() end -- read data from file +-- +-- @param fmt the reading format +-- @param opt the options +-- - continuation (concat string with the given continuation characters) +-- function _file:read(fmt, opt) -- ensure opened @@ -549,6 +554,12 @@ function io.stdfile(filepath) end -- open file +-- +-- @param filepath the file path +-- @param mode the open mode, e.g. 'r', 'rb', 'w+', 'a+', .. +-- @param opt the options +-- - encoding, e.g. utf8, utf16, utf16le, utf16be .. +-- function io.open(filepath, mode, opt) -- check |
