From 8e3ee7bcb282d7823cd892e7ed5a6badfc6afdda Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sun, 21 Jul 2019 17:45:22 +1000 Subject: [PATCH] never mind no reading files line by line in fs.read --- module/fs.lua | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/module/fs.lua b/module/fs.lua index 78fa931..7b3a20e 100644 --- a/module/fs.lua +++ b/module/fs.lua @@ -29,19 +29,8 @@ for k,v in pairs({"makeDirectory","exists","isDirectory","list","lastModified"," end local function fread(self,length) - length = length or "*l" if length == "*a" then length = math.huge - elseif length == "*l" then - local rstr, lstr = "", "" - while true do - lstr = fs.mounts[self.fs].read(self.fid,1) - if lstr == "\n" or not lstr then - break - end - rstr = rstr .. lstr - end - return rstr end if type(length) == "number" then local rstr, lstr = "", ""