Re: im facing problem with fread()??



On 24 Aug 2005 03:34:16 -0700,
Rajshekhar <rajshekhar3@xxxxxxxxx> wrote:


> hi
> the file triangle.txt contents are...
> 6 6 4
>
> thats it .....
> i dont think this file is binary file ..!!!


If sizeof(int) on your system is greater than the total number of bytes
in the input file there are not enough data for even the first element,
and thus you read zero elements.

Villy
.



Relevant Pages

  • Re: im facing problem with fread()??
    ... i dont think this file is binary file ..!!! ... Prev by Date: ...
    (comp.lang.c)
  • text slideShow
    ... var quotations = new Array() ... I dont know how to switch the text but its working, ... first element perform the random for about 3 seconds the second element will ...
    (microsoft.public.scripting.jscript)
  • Re: sort function - from ascending to descending
    ... tom essentially thats the same as what i posted except you have 'List = ... another sub. ... Thing is its still missing the first element, ...
    (microsoft.public.excel.programming)
  • getting first element of an array
    ... I'm using PHP 4.4.4. ... I dont' want to use array_pop because I don't want to change ... the contents of the array, I simply want to pick a sample element of ... I suppose it doesn't have to be the first element. ...
    (comp.lang.php)