PC Review


Reply
Thread Tools Rate Thread

can streamreader specify a format?

 
 
Robert Megee
Guest
Posts: n/a
 
      22nd Mar 2005
First let me say that this newsgroup rocks! The ideas and information
here have helped me to no end.

Now for my question. I'm opening a file that is nfs exported from
an OpenVMS system. On that system the file is a text file. However
when I open it on my dotnet server, it isn't. I know that ftp can be
set to match the format for a text file to make it readible on
different platforms. Does streamreader have some way to
format/convert/filter the file so that it will read correctly?

thanks,

Robert Megee
 
Reply With Quote
 
 
 
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      22nd Mar 2005
Robert Megee <(E-Mail Removed)> wrote:
> First let me say that this newsgroup rocks! The ideas and information
> here have helped me to no end.
>
> Now for my question. I'm opening a file that is nfs exported from
> an OpenVMS system. On that system the file is a text file. However
> when I open it on my dotnet server, it isn't. I know that ftp can be
> set to match the format for a text file to make it readible on
> different platforms. Does streamreader have some way to
> format/convert/filter the file so that it will read correctly?


You could well be looking for Encoding, but it really depends on how
the text file is stored. What do you get back if you open it using the
ASCII encoding, for example?

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
 
Reply With Quote
 
Robert Megee
Guest
Posts: n/a
 
      22nd Mar 2005
On Tue, 22 Mar 2005 23:07:09 -0000, Jon Skeet [C# MVP]
<(E-Mail Removed)> wrote:

>Robert Megee <(E-Mail Removed)> wrote:
>> First let me say that this newsgroup rocks! The ideas and information
>> here have helped me to no end.
>>
>> Now for my question. I'm opening a file that is nfs exported from
>> an OpenVMS system. On that system the file is a text file. However
>> when I open it on my dotnet server, it isn't. I know that ftp can be
>> set to match the format for a text file to make it readible on
>> different platforms. Does streamreader have some way to
>> format/convert/filter the file so that it will read correctly?

>
>You could well be looking for Encoding, but it really depends on how
>the text file is stored. What do you get back if you open it using the
>ASCII encoding, for example?

I'll check it out and let you know.
thanks.

Robert

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
StreamReader.StreamReader(String, bool) bug - no BOM detection Polanski24 Microsoft Dot NET Framework 4 22nd Apr 2006 08:34 PM
StreamReader Ian Oldbury Microsoft ASP .NET 2 24th Sep 2005 08:36 AM
Streamreader help collinse@gmail.com Microsoft C# .NET 1 22nd Mar 2005 09:41 PM
How to create a StreamReader from an existing StreamReader Anders Olsson Microsoft C# .NET 5 6th Aug 2004 06:22 AM
streamreader Mark Microsoft VC .NET 0 5th May 2004 03:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:17 AM.