The code for this function is Unix dependent at the moment.
The routine doesn't actually check to see whether file exists.