I created a file. I want the file to be created when necessary and deleted when necessary, without writing anything to the file. The idea is to use the file as a key to perform an action. If the file exists action A should be take. On the other hand, if the file does not exist action B should be take. Unlike variables, which are always initialized when the Terminal is closed or when your computer is restarted, the file method has no this limitation. It still retains the value of exist or deleted while the computer is restarted or Terminal closed. Now there are times when the file should be created and when the file should be deleted. But the file has not been able to be deleted. See the code I used in trying to delete the fileas follows:
if (FileIsExist("KeyFile.txt")==true)type = "valid";
//Something like that...
There is no OrderDelete() in your code that you show
If you don't want to actually write anything to the file, why don't you use a Global Variable of the Client terminal?
If you want to delete a file , use FileDelete()
To add comments, please log in or register