my goal is turn these 3 tables
{name = "TestProgram 1", xMin = 22, yMin = 2, xMax = 42, yMax = 10}
{name = "TestProgram 2", xMin = 23, yMin = 4, xMax = 49, yMax = 12}
{name = "TestProgram 3", xMin = 2, yMin = 2, xMax = 20, yMax = 10}
into this:
ProgramList = {
{name = "TestProgram 1", xMin = 22, yMin = 2, xMax = 42, yMax = 10},
{name = "TestProgram 2", xMin = 23, yMin = 4, xMax = 49, yMax = 12},
{name = "TestProgram 3", xMin = 2, yMin = 2, xMax = 20, yMax = 10}
}
I'm making a program that checks every files that has the file extension ".prog" and save all the information about them
by getting all their first line which are tables and store them in one table "ProgramList". the whole program is already written all i need is to get the tables from the other files, now I tried code you've written and it gives me an error "serialize:1: table index expected, got nil"