Re: im facing problem with fread()??
- From: Villy Kruse <vek@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: 24 Aug 2005 10:56:21 GMT
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
.
- References:
- im facing problem with fread()??
- From: Rajshekhar
- Re: im facing problem with fread()??
- From: manoj1978
- Re: im facing problem with fread()??
- From: Rajshekhar
- im facing problem with fread()??
- Prev by Date: Re: im facing problem with fread()??
- Next by Date: Re: im facing problem with fread()??
- Previous by thread: Re: im facing problem with fread()??
- Next by thread: Re: im facing problem with fread()??
- Index(es):
Relevant Pages
|