Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Statements used in manipulating file contents must be appropriate to the mode in which the file was opened. Possible causes include:
A
FilePutObjectorFileGetObjectstatement specifies a sequential file.A
Printstatement specifies a file opened for an access mode other thanOutputorAppend.An
Inputstatement specifies a file opened for an access mode other thanInputAn attempt to write to a read-only file.
To correct this error
Make sure
FilePutObjectandFileGetObjectare only referring to files open forRandomorBinaryaccess.Make sure
Printspecifies a file opened for eitherOutputorAppendaccess mode. If not, use a different statement to place data in the file, or reopen the file in an appropriate mode.Make sure
Inputspecifies a file opened forInput. If not, use a different statement to place data in the file or reopen the file in an appropriate mode.If you are writing to a read-only file, change the read/write status of the file or do not try to write to it.
Use the functionality available in the
My.Computer.FileSystemobject.