Aack! Stuff like this is fraught with peril. Don't do it!
What if the user had a valuable file of the same name in that directory that you just clobbered? What if you don't have permission to write in the directory? What if someone in a different timezone has mounted the drive remotely and runs at the same time as you do? What if any of a number of ugly things happen between the time you write it and the time you read it?
This creates a maintenance headache way out of proportion to the problem you're trying to solve. Polluting a directory to get the date is completely unnecessary, and is an accident just waiting to happen.
But now let me tell you how I really feel ;-)
In reply to Re: Re: System call on MSDos
by VSarkiss
in thread System call on MSDos
by Zo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |