g1doz Posted September 2, 2019 Share 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 Link to comment Share on other sites More sharing options...
AKRAMRAZA Posted September 9, 2019 Share 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 Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.