home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Wipelogic
-
- PARAMETERS _file
-
- IF PCOUNT() != 1
- RETURN(.F.)
- ENDIF
- IF TYPE("_file") != "C"
- RETURN(.F.)
- ENDIF
-
- PRIVATE _fhandle, _temp
-
- _fhandle = FOPEN(_file, 2)
- FSEEK(_fhandle, -6, 2)
- _temp = FREADSTR(_fhandle, 4)
- IF _temp != "SJSL"
- RETURN(.F.)
- ENDIF
- FSEEK(_fhandle, -4, 1) && To get back to the original position
- FSEEK(_fhandle, -10, 1) && Ignor the lenght: I know it
- FSEEK(_fhandle, -5, 1)
- FWRITE(_fhandle, "", 0)
- FCLOSE(_fhandle)
- RETURN(.T.)
-
- * End of File