C Board  

Go Back   C Board > General Programming Boards > C# Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-19-2006, 02:20 PM   #1
Registered User
 
Join Date: Dec 2005
Posts: 141
A couple of stream questions

1. How can I convert a memorystream/filestream to a stream?
2. How to create an array of streams?

AK
AngKar is offline   Reply With Quote
Old 06-19-2006, 03:04 PM   #2
Anti-Poster
 
Join Date: Feb 2002
Posts: 1,241
Quote:
Originally Posted by AngKar
1. How can I convert a memorystream/filestream to a stream?
Both MemoryStream and FileStream inherit from Stream. You can use either class where you can use a Stream.
Quote:
Originally Posted by AngKar
2. How to create an array of streams?
Code:
//An array of five streams
Stream[] streams = new Stream[5];
__________________
Rule #1: Every rule has exceptions
pianorain is offline   Reply With Quote
Old 06-20-2006, 03:28 PM   #3
Registered User
 
Join Date: Dec 2005
Posts: 141
So is this valid? I want to do something like this....

Code:
 public Stream getStream(Stream stream)
 {
  MemoryStream ms;
   .
   .
   .
  retrun ms;
 }
AngKar is offline   Reply With Quote
Old 06-20-2006, 03:33 PM   #4
Anti-Poster
 
Join Date: Feb 2002
Posts: 1,241
Yup.
__________________
Rule #1: Every rule has exceptions
pianorain is offline   Reply With Quote
Old 06-20-2006, 03:42 PM   #5
Registered User
 
Join Date: Dec 2005
Posts: 141
Thanks Piano
AngKar is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Couple of questions about XOR linked lists... klawson88 C Programming 5 04-19-2009 04:55 PM
a couple of questions about System.String Elkvis C# Programming 5 02-17-2009 02:48 PM
A couple of Basic questions ozumsafa C Programming 8 09-26-2007 04:06 PM
Couple of Questions toonlover Windows Programming 10 07-14-2006 01:04 AM
couple questions for newb bluehead C++ Programming 10 11-24-2001 03:32 AM


All times are GMT -6. The time now is 11:41 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22