Jump to content

Progdor - An even easier way to bundle a folder into one file

20 replies to this topic

#21 Luca_S

  • Members
  • 407 posts
  • LocationGermany

Posted 21 August 2016 - 08:44 AM

View PostLyqyd, on 20 August 2016 - 07:28 PM, said:


local max = 0
for match in string.gmatch(fileContents, "%](=*)%]" do
  max = math.max(max, #match)

local quotedContents = "["..string.rep("=", max + 1).."["..fileContents.."]"..string.rep("=", max + 1).."]"

Yeah, that's waaay too complicated.
Even if you don't remove the newlines and stuff from serialization you could save a lot of space by saving a whole file into only one string, not into multiple strings(1 per line).

I asked someone who has a function to serialize something without the formatting if he has any problems with releasing it.

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users