Jump to content
  • 0

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


g1doz

Question

Posted

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

Posted
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.