0
You are indeed correct about the placement of the error. The question marks should be replaced with a piece of code that writes to the mystream. As i have noticed, you have not really declared myStream in the portion of the code that you left us. What is the datatype of myStream? If it is of type stream, then the solution to the problem lies in the Methods that are embeded into the stream Class.