g1doz Posted September 2, 2019 Posted September 2, 2019 How do I save value in a file and then call this value to process it? My idea is i want to add a function and I want this function to do this steps 1- Create a file to write the date of opening the script for the first time 2- I want the script to be open every time check if it has been one days since the first time I opened it 3- If it is more than a day since first opened it, it will do something and if it will not, continue to work normally any one can help me guys and thanks you all
AKRAMRAZA Posted September 9, 2019 Posted September 9, 2019 On 9/2/2019 at 5:18 PM, g1doz said: How do I save value in a file and then call this value to process it? My idea is i want to add a function and I want this function to do this steps 1- Create a file to write the date of opening the script for the first time 2- I want the script to be open every time check if it has been one days since the first time I opened it 3- If it is more than a day since first opened it, it will do something and if it will not, continue to work normally any one can help me guys and thanks you all Read https://www.lua.org/pil/21.2.html
Question
g1doz
How do I save value in a file and then call this value to process it?
My idea is i want to add a function and I want this function to do this steps
1- Create a file to write the date of opening the script for the first time
2- I want the script to be open every time check if it has been one days since the first time I opened it
3- If it is more than a day since first opened it, it will do something and if it will not, continue to work normally
any one can help me guys and thanks you all
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.