FileStream question
Jeff Roberts <[email protected]> Tue, 25 Jun 2002 11:52:53 -0400
| Newsgroups | gmane.comp.windows.devel.dotnet.general |
|---|---|
| Organization | Newhart Systems Inc. |
| Message-ID | <DOTNET%[email protected]> |
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.BaseDirectory; file = new FileStream(Dir+"mytextfile", FileMode.Open,FileAccess.Read,FileShare.ReadWrite); reader = new BinaryReader(file, Encoding.Unicode); You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.