Re: Reads in only part of file
- To: mathgroup at smc.vnet.net
- Subject: [mg51240] Re: Reads in only part of file
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Sat, 9 Oct 2004 04:19:20 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On 10/7/04 at 5:26 AM, mjankowski at usm.maine.edu (Mariusz Jankowski)
wrote:
>Steve, use the option DOSTextFormat -> True. This an option of
>OpenStream so you must do
>stream = OpenStream[ st1, DOSTextFormat -> True] xin =
>ReadList[stream, {Byte, Byte}]
No, the option needs to be DOSTextFormat->False. When set to true (the default condition) this causes Mathematica to interpret the stream as text, i.e., translating line-ending characters into newline characters and terminating on an EOF character. This is exactly the behavior you want to avoid when reading non-text files.
--
To reply via email subtract one hundred and four