Read file and then write to it
Posted on 2006-10-26
I have a script and I need to document how many times a certain procedure is being used. I would just like to write this out to a text file to look like:
I will 6 people all using the same script and would like this written to a text file in a shared location. I doubt anyone would be using this at the same time, but I guess it could happen. I have never written to a text file and not really sure how to set this up since it needs to read the file to get a number, then add +1 to this number. I guess it also must know what date it is to see if it needs to start new date.