I assumed (my mistake) you wanted threadsafe code but based on your comment later about the file open mode it seems you may not.<BR><BR>My advice was to make the code threadsafe. Write it in such a ...