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