Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7726575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:14:59+00:00 2026-06-01T05:14:59+00:00

So for awhile I’ve been using a StreamReader/Writer as a wrapper over a TcpClient’s

  • 0

So for awhile I’ve been using a StreamReader/Writer as a wrapper over a TcpClient’s NetworkStream – Mainly just for simplicity, and to save time.

It’s worked fine when working with a streamreader/writer on both ends of the connection, but i’ve noticed that when using one of these helper classes with a endpoint that is not also using the helper counterpart, strange things start happening. Extraneous bytes prepended to the stream and other weird things.

This has got me thinking, maybe there is some un-needed overhead with using these wrappers? or possibly compatibility issues when developing clients in other languages like C++ or PHP.

What are the implications of using the StreamReader and StreamWriter helper classes, and are there any benefits? (along the line of error handling or anything else)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T05:15:01+00:00Added an answer on June 1, 2026 at 5:15 am

    StreamReader/Writer are letting you easily store/read text data to/from stream. There is no additional overhead on top of what they are for – convert values to text representation in correct encoding. There should be no problem consuming this text stream from other languages as long as both sides agree on encoding – i.e. one is default UTF-8 with BOM.

    “Extraneous bytes prepended” is Byte Order Mark (BOM), which you can turn off when constructing the reader (and it is only for Unicode UTF-8/7/16 encoding).

    Depending on your goals using raw streams for binary communication may be better/faster.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using .NET Reflector for awhile but I've just recently switched machines and
I have been happily using HgSubversion for awhile and today I forgot to add
I've been using sikuli for awhile, however I have an issue with it... It's
I've been using Aptana 3 for awhile, mostly for HTML, CSS and PHP editing.
I've been using LINQ for awhile (and enjoy it), but it feels like I
its been awhile since i used java the last time and am trying to
I have been using IIS express as my web server for awhile now, but
It's been awhile since my algorithms class in school, so forgive me if my
I was using \documentclass{amsmath} for awhile with no issues, but I recently wanted to
I have been looking around for awhile now and I can't seem to find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.