[linux-yazilim] fopen binary file

---------

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

From: sbolukbas@darkstar.securities.com.tr
Date: Sat 14 Sep 2002 - 22:04:08 EEST


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
eriyor. Dosya sonunu binary dosyalarda tespit edebilecegim bir komut
varmi?

Saygilarimla ...


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

---------

Bu arsiv hypermail 2b29 tarafindan uretilmistir.