Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Reads in only part of file

  • To: mathgroup at
  • Subject: [mg51240] Re: Reads in only part of file
  • From: Bill Rowe <readnewsciv at>
  • Date: Sat, 9 Oct 2004 04:19:20 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

On 10/7/04 at 5:26 AM, mjankowski at (Mariusz Jankowski)

>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

  • Prev by Date: Very basic question: Zoom into a 2-D plot with the mouse
  • Next by Date: Export with jLink
  • Previous by thread: Re: Reads in only part of file
  • Next by thread: Extracting Real Parts from NN Expression