MathGroup Archive 1996

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

Search the Archive

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

  • Subject: [mg3329] Problem reading binary files - news26.txt [1/1]
  • From: peter at physto.se (Peter Weijnnitz)
  • Date: 26 Feb 1996 10:58:59 -0600
  • Approved: usenet@wri.com
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: Wolfram Research, Inc.
  • Sender: daemon at wri.com

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: Problem reading binary files - news26.txt [1/1]
  • Next by Date: Re: ListContourPlot
  • Previous by thread: Problem reading binary files - news26.txt [1/1]
  • Next by thread: Re: Problem reading binary files - news26.txt [1/1]