zoho_round_3/taxiImp.c
void loadTaxiDetails(Taxi t[])
{
 int index;
 FILE *fp;
 fp = fopen("taxiDetails.dat","rb");
 for(index=0;index<TaxiNum;index++)
 {
  fread(&t[index],sizeof(t[index]),1,fp);
  printf("\nTaxi ID %d , freeStatus %d Station : %c ",t[index].taxiId+1,t[index].freeStatus, t[index].station);
 }
 fclose(fp);
}
// To load the details of the Taxi from the database
To load the details of the Taxi from the database
To load the details of the Taxi from the database
void loadTaxiDetails(Taxi t[])
{
 int index;
 FILE *fp;
 fp = fopen("taxiDetails.dat","rb");
 for(index=0;index<TaxiNum;index++)
 {
  fread(&t[index],sizeof(t[index]),1,fp);
  printf("\nTaxi ID %d , freeStatus %d Station : %c ",t[index].taxiId+1,t[index].freeStatus, t[index].station);
 }
 fclose(fp);
}
void loadTaxiDetails ( Taxi t [ ] ) { int index ; FILE * fp ; fp = fopen ( " " , " " ) ; for ( index = 0 ; index < TaxiNum ; index ++ ) { fread ( & t [ index ] , sizeof ( t [ index ] ) , 1 , fp ) ; printf ( " \n " , t [ index ] . taxiId + 1 , t [ index ] . freeStatus , t [ index ] . station ) ; } fclose ( fp ) ; }
To load the details of the Taxi from the database
To load the details of the Taxi from the database