Article View: borland.public.csharpbuilder.language.csharp
Article #600Re: Convert byte[] to string
From: Joanna Carter (TeamB)
Date: Thu, 17 Jun 2004 08:56
Date: Thu, 17 Jun 2004 08:56
23 lines
1533 bytes
1533 bytes
"Marc Rohloff [TeamB]" <"on request"> a οΏ½crit dans le message de news: a1ogabhuvvn1$.dlg@marcrohloff.40tude.net... > In case you want a third option: > MemoryStream ms = ... > StreamReader sr = new StreamReader(ms); > String s = StreamReader.ReadToEnd(); > -or- > String s = StreamReader.ReadLine(); Thanks to all, the nearest I had got was similar to Graucsh; but I will play with the others at the weekend. Isn't managed code fun ? :-)) Joanna -- Joanna Carter (TeamB) Consultant Software Engineer TeamBUG support for UK-BUG TeamMM support for ModelMaker
Technical Details
Message-ID:
<40d15ca2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40ceee18@newsgroups.borland.com> <a1ogabhuvvn1$.dlg@marcrohloff.40tude.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1efe35,1f9eec336775d905 X-Google-Attributes: gid1efe35,public From: "Joanna Carter \(TeamB\)" <joannac@btinternetxx.com> Newsgroups: borland.public.csharpbuilder.language.csharp References: <40ceee18@newsgroups.borland.com> <a1ogabhuvvn1$.dlg@marcrohloff.40tude.net> Subject: Re: Convert byte[] to string Date: Thu, 17 Jun 2004 09:56:00 +0100 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 62.77.173.218 Message-ID: <40d15ca2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1087462562 62.77.173.218 (17 Jun 2004 01:56:02 -0700) X-Authenticated-User: jcarter Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail