[linux-yazilim] Re: fopen binary file

---------

New Message Reply About this list Date view Thread view Subject view Author view

From: Ali ÇAYLI (alicayli@ksu.edu.tr)
Date: Mon 16 Sep 2002 - 17:35:42 EEST


----- Original Message -----
From: <sbolukbas@darkstar.securities.com.tr>
To: <linux-yazilim@linux.org.tr>
Sent: Saturday, September 14, 2002 10:04 PM
Subject: [linux-yazilim] fopen binary file

>
> FILE *dosya;
> dosya = fopen("dosya.bin", "rb");
>
> seklinde binary bir dosyayi acip okuma yapmak istiyorum.
> while ((ch = fgetc(dosya)) != EOF)
> seklindeki bir dongu dosya sonuna gelmeden, ch'nin -1 almasiyla sona

while ((ch = fgetc(dosya)) != NULL)

boyle olmasi lazim..


New Message Reply About this list Date view Thread view Subject view Author view

---------

Bu arsiv hypermail 2b29 tarafindan uretilmistir.