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 1996

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

Search the Archive

Problem reading binary files - news26.txt [1/1]

  • To: mathgroup at
  • Subject: [mg3329] Problem reading binary files - news26.txt [1/1]
  • From: peter at (Peter Weijnnitz)
  • Date: Mon, 26 Feb 1996 02:57:34 -0500
  • Sender: owner-wri-mathgroup at

I am using Mathematica 2.2.1 for windows 3.1 and I have found a problem 
when reading binary files, e.g. ReadList["bin.raw",{<<listofByte>>}]
where bin.raw is a file of size Length[listofByte].

It seems that the problem occures when ReadList finds a binary sequence 
coerresponding to decimal 26 (ascii=^z SUB) this sequence Mathematica interprets as a 
EndOfFile and the rest of the file is not read in (the rest of listofByte is filled with
EndOfFile ). What is the cure for this?

I have tried: 
1 Mathematica ver. 2.2.3
2 reading characters instead
3 using the package BinaryFiles

with the same result

Peter W


  • Prev by Date: Re: Re: Books - tutorials / reference guides
  • Next by Date: Problem reading binary files - news26.txt [1/1]
  • Previous by thread: Re: Mathematica on MacOS 7.52
  • Next by thread: Problem reading binary files - news26.txt [1/1]