home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 24.7 OK2WRITE()
- Author: Joe Booth
- Excerpted from "Clipper 5: A Developer's Guide"
- Copyright (c) 1991 M&T Books
- 501 Galveston Drive
- Redwood City, CA 94063-4728
- (415) 366-3600
- */
-
- #include "FILEIO.CH"
-
- function Ok2write(cFile)
- LOCAL retval:=.T.,fh
- if file( cFile )
- fh := fopen( cFile,FO_READWRITE )
- retval := (fh >= 0 .and. ferror()= 0 )
- fclose(fh)
- endif
- return (retval)
-
- // end of file CHP2407.PRG
-