home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a075 / 1.img / TOOLKIT1.EXE / SST330.PRG < prev    next >
Encoding:
Text File  |  1989-08-08  |  582 b   |  32 lines

  1. *******************
  2.  
  3. FUNCTION Lookdate
  4.  
  5.    PARAMETERS _file
  6.  
  7.    * take the _file and the _date and write the _date
  8.    * to the back end of the _file, makring the file with
  9.    * the _date and a special code: ddddddddxxxxxSJSD
  10.  
  11.    IF PCOUNT() != 1
  12.       RETURN(.F.)
  13.    ELSEIF TYPE("_file") != "C"
  14.       RETURN(.F.)
  15.    ELSEIF !FILE(_file)
  16.       RETURN(.F.)
  17.    ENDIF
  18.  
  19.    PRIVATE _fhandle, _temp
  20.  
  21.    _fhandle = FOPEN(_file, 2)
  22.  
  23.    FSEEK(_fhandle, -6, 2)
  24.  
  25.    _temp = FREADSTR(_fhandle, 4)
  26.  
  27.    FCLOSE(_fhandle)
  28.  
  29.    RETURN( (_temp = "SJSD") )
  30.  
  31. * End of File
  32.