Lua Get Data From Text File

Hey i have a little question

Text file:

scripts {    "example_1",    "example_2" }

I have a text file with table scripts. And in my lua file I want to get all scripts thad is in thad table.

I already know how to get the text file.

But I don't know how how to extracts the scripts

Thanks in Advance


Solution 1:

Define a function called scripts that receives a table and then load your text file with dofile.