The file is currently open for writing

An attempt has been made to access a file that is currently open for writing.

To correct this error

  • Close the file and attempt the operation again.

See Also

Tasks

How to: Get Information About a File in Visual Basic

How to: Write Text to Files in Visual Basic

How to: Write to Binary Files in Visual Basic

Reference

FileIOPermission