Delen via


Use 'FileGetObject' instead of 'FileGet' when using argument of type 'Object'

The FileGet method includes an argument of type Object. FileGetObject should be used in place of FileGet to avoid ambiguities.

Notice that the functionality offered by My.Computer.Filesystem offers greater ease of use and performance than either FileGet or FileGetObject.

To correct this error

  1. Replace FileGet with FileGetObject.

  2. Cast the Object argument to a more specific type.

See Also

Reference

FileGetObject Function

My.Computer.FileSystem Object