Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 02-02-2009
Member
 
Join Date: Jan 2009
Posts: 18
String veriable to stream object conversion?

Hello,
i am working ob VB.net platform
I want to know the best way possible to convert thye string veriable to IO.Stream object?
Reply With Quote
  #2  
Old 02-02-2009
Member
 
Join Date: May 2008
Posts: 40
Re: String veriable to stream object conversion?

Hi,
I assume you want string's stream encoded in UTF8:

Code:
System.IO.MemoryStream = new System.IO.MemoryStream(
System.Text.Encoding.UTF8.GetBytes( "the string"));
Try using StringReader class.
Its not an IO.Stream but its easy text-oriented reading of string.
Reply With Quote
  #3  
Old 02-02-2009
Member
 
Join Date: May 2008
Posts: 72
Re: String veriable to stream object conversion?

If you actually want a TextReader, using StringReader is the way to go
- there's no need to go via a StringBuilder. (I'm not sure how you were
suggesting opening a TextReader on the StringBuilder anyway, to be
honest.)
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "String veriable to stream object conversion?"
Thread Thread Starter Forum Replies Last Post
Getting HP AIO Device object server register class object failed message on my system Donoho Hardware Peripherals 6 06-06-2011 01:34 AM
Scope of Object or variable in Object oriented Programming Languages Dėfrim Software Development 3 08-01-2011 06:20 AM
integer to string conversion cyber-noob Software Development 4 03-03-2010 10:26 PM
How to convert String to Date object in java? KALANI84 Software Development 4 20-01-2010 05:07 PM
conversion of Object into integer in JAVA Jaisudha Software Development 3 14-11-2009 12:45 PM


All times are GMT +5.5. The time now is 10:53 PM.