// will probably fail because the file is already open

It's does me no good it it fails, how can I do it so that is does not fail?