Jump to content
g1doz

How do I save value in a file and then call this value to process it?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...