6 posts
Posted 26 November 2014 - 01:44 AM
I am wondering how I would go about accessing a table from a file using fs?
1023 posts
Posted 26 November 2014 - 01:49 AM
I am wondering how I would go about accessing a table from a file using fs?
Assuming that you saved the file to the file in its serialized form using textutils.serialize(table), then you would be able to do something like this
file = fs.open("filename","r")
table = textutils.unserialize(file.readAll())
file.close()
3057 posts
Location
United States of America
Posted 26 November 2014 - 01:54 AM
*note: do not use the variable table for storing data. It is an api. Also avoid global variables when at all possible.
6 posts
Posted 28 November 2014 - 02:44 AM
thank you