Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*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 smc.vnet.net
  • Subject: [mg3329] Problem reading binary files - news26.txt [1/1]
  • From: peter at physto.se (Peter Weijnnitz)
  • Date: Mon, 26 Feb 1996 02:57:34 -0500
  • Sender: owner-wri-mathgroup at wolfram.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

==== [MESSAGE SEPARATOR] ====


  • 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]