MathGroup Archive 2007

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

Search the Archive

Re: negative FileByteCount

  • To: mathgroup at
  • Subject: [mg83567] Re: negative FileByteCount
  • From: sashap <pavlyk at>
  • Date: Fri, 23 Nov 2007 05:30:13 -0500 (EST)
  • References: <> <fhjt5h$5id$>

On Nov 22, 5:48 am, rych <rych... at> 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[""]
> Out[3]= InputStream["", 29]
> In[4]:= FileByteCount[""]
> 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)