Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: mirzapirza
  • Content: Threads
  • Order by date
  1. mirzapirza

    Stream.Read sometimes returns -1, what to do?

    It's not documented in the MSDN. The Read method is supposed to return the number of bytes read from the stream, or 0 if there's no more data. Here's what I'm currently doing.. // reader is a Stream using(reader = new WebClient().OpenRead(url)) { int read = 1; byte[] buff = new byte[4096]...

Part and Inventory Search

Back
Top