MathGroup Archive 2007

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

Search the Archive

Re: negative FileByteCount

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83567] Re: negative FileByteCount
  • From: sashap <pavlyk at gmail.com>
  • Date: Fri, 23 Nov 2007 05:30:13 -0500 (EST)
  • References: <200711151030.FAA08772@smc.vnet.net> <fhjt5h$5id$1@smc.vnet.net>

On Nov 22, 5:48 am, rych <rych... at gmail.com> wrote:
> Very interesting replies, thank you very much. I don't want to load
> the whole file into memory, the main, virtual or whatever, but I do
> want to have an access to it. The C runtime fopen() gives me a handle
> to my big file (and to the biggest files on my harddisk, which are now
> a couple of HD films). Then I can read from it with a trivial C code.
> Why can't I do the same from Mathematica?
>
> In[3]:= snum = OpenRead["scandata.xyz"]
> Out[3]= InputStream["scandata.xyz", 29]
> In[4]:= FileByteCount["scandata.xyz"]
> Out[4]= -936210076
> In[5]:= ReadList[snum, Number, 3]
> Out[5]= {}

This is a known limitation in Mathematica. Expect it to be fixed
in future releases.

Oleksandr Pavlyk
Wolfram Research


  • Prev by Date: Coloring cells
  • Next by Date: Re: Problems with Mathematica text in email
  • Previous by thread: Re: negative FileByteCount
  • Next by thread: Can't abort a loop with Print inside (V6)