Re: [DOTNET] FileStream question

2002-06-25 Thread Greg Reinacker
You don't need to use a StreamReader for this; just use Stream.Read. Greg Reinacker Reinacker & Associates, Inc. http://www.rassoc.com http://www.rassoc.com/gregr/weblog/ -Original Message- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]] On Behalf Of Jeff Roberts

Re: [DOTNET] FileStream question

2002-06-25 Thread Marsh, Drew
Jeff Roberts [mailto:[EMAIL PROTECTED]] wrote: > Thanks again ! I need to read a "binary" file into a byte > array, can I do this = with the StreamReader class ? I don't > see a BinaryStreamReader Class ! If it's binary, then you can read it by just using the Stream, which happens to be a Netw

Re: [DOTNET] FileStream question

2002-06-25 Thread Sean Greer (SBI-Chico)
8:53 AM To: [EMAIL PROTECTED] Subject: [DOTNET] FileStream question Does anyone know if I can read a text file from a web server with the FileStream class ? For example, if my .net application was launched from www.ws.com\myapp.exe, could I read a file from www.ws.com by the name of mytextfil

Re: [DOTNET] FileStream question

2002-06-25 Thread Tom Archer
To: [EMAIL PROTECTED] Subject: Re: [DOTNET] FileStream question Thanks Tom. Does your book go into web deployment in detail ? Can you give me a link to where I can buy it ? Thanks again You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMento

Re: [DOTNET] FileStream question

2002-06-25 Thread Jeff Roberts
Thanks Tom. Does your book go into web deployment in detail ? Can you give me a link to where I can buy it ? Thanks again You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] FileStream question

2002-06-25 Thread Tom Archer
t: Re: [DOTNET] FileStream question Yes I have and I tried it with your example and I get an exception when I try to a BinaryReader.ReadByte() call ! That is why I asked if there was a BinaryStreamReader class . thank you You can read messages from the DOTNET archive, unsubscribe from DOTNE

Re: [DOTNET] FileStream question

2002-06-25 Thread Jeff Roberts
Yes I have and I tried it with your example and I get an exception when I try to a BinaryReader.ReadByte() call ! That is why I asked if there was a BinaryStreamReader class . thank you You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor

Re: [DOTNET] FileStream question

2002-06-25 Thread Tom Archer
Did you look at the BinaryReader class? -Original Message- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Roberts Sent: Tuesday, June 25, 2002 12:24 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] FileStream question Thanks again ! I need to

Re: [DOTNET] FileStream question

2002-06-25 Thread Jeff Roberts
Thanks again ! I need to read a "binary" file into a byte array, can I do this with the StreamReader class ? I don't see a BinaryStreamReader Class ! You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] FileStream question

2002-06-25 Thread Marsh, Drew
Jeff Roberts [mailto:[EMAIL PROTECTED]] wrote: > Does anyone know if I can read a text file from a web server > with the = FileStream class ? For example, if my .net > application was launched from = www.ws.com\myapp.exe, could I > read a file from www.ws.com by the name of = mytextfile with > t

Re: [DOTNET] FileStream question

2002-06-25 Thread Tom Archer
st will be retired 7/1/02 [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Roberts Sent: Tuesday, June 25, 2002 11:53 AM To: [EMAIL PROTECTED] Subject: [DOTNET] FileStream question Does anyone know if I can read a text file from a web server with the FileStream class ? For example, if my .net

[DOTNET] FileStream question

2002-06-25 Thread Jeff Roberts
Does anyone know if I can read a text file from a web server with the FileStream class ? For example, if my .net application was launched from www.ws.com\myapp.exe, could I read a file from www.ws.com by the name of mytextfile with the following code ? string Dir = AppDomain.CurrentDomain.Base