I'm sure this question has probably been asked before, but here it is again. When using a script that is going to write info to a file on a remote server, what is the best method to use? The amount of data written is fairly small - approx 100 characters, but there is the potential for many workstations to be writing to the file at the same time.

I have used RedirectOutput and WriteLine . Both seem to work fine, but I'm curious if one is better than the other or if it's just a matter of personal preference.

How big of an issue is contention? I want to make sure that any workstation that needs to write to the file will be able to do so.

Thanks in advance for any insight.