Re: FastBinaryFiles
- To: mathgroup at smc.vnet.net
- Subject: [mg18919] Re: [mg18884] FastBinaryFiles
- From: John Fultz <jfultz at wolfram.com>
- Date: Tue, 27 Jul 1999 22:17:23 -0400
- Organization: Wolfram Research, Inc.
- References: <199907250730.DAA02078@smc.vnet.net.>
- Sender: owner-wri-mathgroup at wolfram.com
There are two problems with this code. First, filenames should be specified using double-backslashes...i.e. "e:\\data\\binarytest" although that's not what's causing the error you're seeing. The error you're getting is due to the fact that you are actually not using FastBinaryFiles. Instead, you're using the Utilities`BinaryFiles` package which comes with Mathematica. To use FastBinaryFiles, you need to follow the directions in the README to install it, then execute the following command in Mathematica: Install["binary"] You should *not* execute the Needs["Utilities`BinaryFiles`"] command. Sincerely, John Fultz jfultz at wolfram.com Front End Group Wolfram Research, Inc. Virgil Stokes wrote: > > I recently installed FastBinaryFiles (in Mathematica 3.01, for Window NT 4.0). > According to the readme.txt file that came with this package, the following > should > work: > > Needs["Utilities`BinaryFiles`"] > > data = N[Table[n, {n, -10, 10}]] > > nn = Length[data] > > stream = OpenWriteBinary["e:\data\binarytest"] > > WriteBinary[stream,data,Double] > > Close[stream] > > stream = OpenReadBinary["e:\data\binarytest"] > > xx = ReadListBinary[stream,Double,nn] > > Print[xx] > > Close[stream]; > > This does not work (at least for me) -- the WriteBinary does not compile. > But, according to the readme.txt file, it should compile. What am I doing > wrong? > > -- Virgil
- References:
- FastBinaryFiles
- From: Virgil Stokes <virgil.stokes@neuro.ki.se>
- FastBinaryFiles