PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Tom on 25 January, 2005, 11:11:03

Title: I need help with something! PLS
Post by: Tom on 25 January, 2005, 11:11:03
Hi people,

I need help with convert some part of script to a 5.0.2, please!

This is the part of script, which I need convert.
It is datafile function and it don't convert with plop convertor  :(


function SaveToFile(file , table , tablename)
   writeto(file)
   write(Serialize(table, tablename))
   writeto()
end

function LoadFromFile(file)
   if (readfrom(file) ~= nil) then
      readfrom(file)
      dostring(read("*all"))
      readfrom()
   end  

 Thanking you in anticipation, if you help me with convert!
THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU
Title:
Post by: Herodes on 02 February, 2005, 13:21:38
Search the board for "Serialize" and get from it all three (3) functions Loadfile, SaveFile, Serialize are their names ...