The above code should work; do you have another process that is also writing to the file (saving the variable state) that is not closing the file handle?
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only