Problem with open file in stream object

Problem with open file in stream object

Post by Hattie Pe » Thu, 13 May 2004 00:36:11


Hi All,

My VB6 application need to generate UTF-8 encoded files. I am using stream
object with code like this:
Set stm = New Stream
stm.Open "URL=file:///C:/text", adModeWrite
stm.charset = "UTF-8"
.............
The open command failed with message "Object or data matching the name,
range, or selection critia was not found within the scope of this
operation". However, the file does exist and I opened it using stm.open and
stm.loadfromfile commands.

Can anyone tell me what went wrong?

Thank you

HP