#include < QCoreApplication >
#include< stdio.h >
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
int Hesap_Id;
char isim[30];
double bakiye;
FILE *fPtr;
if((fPtr=fopen("vv","r"))==NULL)
{
printf("Dosya Acilamadi : \n");
}
else
{
printf("Lutfen Sira ile %10s%16s%22s giriniz:\n","Id","Ad","Bakiye");
fscanf(fPtr,"%d%s%lf",&Hesap_Id,isim,&bakiye);
while(!feof(fPtr)) /* Dikkat fPtr yani dosya sonu gelmediyse*/
{
printf("%10d%16s%22f\n",Hesap_Id,isim,bakiye);
fscanf(fPtr,"%d%s%lf",&Hesap_Id,isim,&bakiye);
}
fclose(fPtr);
}
return a.exec();
}