home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / educaton / inf_src.arc / GT_302.C < prev    next >
C/C++ Source or Header  |  1986-03-14  |  303b  |  19 lines

  1. #include <stdio.h>
  2. #include "routine.h"
  3. #include "weather.h"
  4.  
  5. main()
  6. {
  7. FILE *dataFile ;
  8. int    value[20] ;
  9.  
  10. dataFile = fopen("WEATHER.DAT","rb") ;
  11. fread(value,2,20,dataFile) ;
  12. fclose(dataFile) ;
  13. if(value[0]>=3020)
  14.     return(RETURN_ROUTINE_TRUE) ;
  15. else
  16.     return(RETURN_ROUTINE_FALSE) ;
  17. }
  18.  
  19.