1. How can I convert a memorystream/filestream to a stream?
2. How to create an array of streams?
AK
1. How can I convert a memorystream/filestream to a stream?
2. How to create an array of streams?
AK
Both MemoryStream and FileStream inherit from Stream. You can use either class where you can use a Stream.Originally Posted by AngKar
Originally Posted by AngKarCode://An array of five streams Stream[] streams = new Stream[5];
If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein
So is this valid? I want to do something like this....
Code:public Stream getStream(Stream stream) { MemoryStream ms; . . . retrun ms; }
Yup.
If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein
Thanks Piano