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

  1. ********************
  2.  
  3. FUNCTION Wipenum
  4.  
  5.    PARAMETERS _file
  6.  
  7.    IF PCOUNT() != 1
  8.       RETURN(.F.)
  9.    ENDIF
  10.    IF TYPE("_file") != "C"
  11.       RETURN(.F.)
  12.    ENDIF
  13.  
  14.    PRIVATE _fhandle, _temp, _length
  15.  
  16.    _fhandle = FOPEN(_file, 2)
  17.    FSEEK(_fhandle, -6, 2)
  18.    _temp = FREADSTR(_fhandle, 4)
  19.    IF _temp != "SJSN"
  20.       RETURN(.F.)
  21.    ENDIF
  22.    FSEEK(_fhandle, -4,  1)       && To get back to the original position
  23.    FSEEK(_fhandle, -10,1)  && Get the length of the character string to read
  24.    _length = VAL(FREADSTR(_fhandle, 10))
  25.    FSEEK(_fhandle, -10, 1)  && Get the length of the character string to read
  26.    FSEEK(_fhandle, _length * -1, 1)
  27.    FSEEK(_fhandle, -2, 1)        && To get back to the original point of the file
  28.    FWRITE(_fhandle, "", 0)
  29.    FCLOSE(_fhandle)
  30.    RETURN(.T.)
  31.  
  32. * End of File
  33.