home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a120 / 1.ddi / WATCOM_C / WAT152.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-18  |  700 b   |  28 lines

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat152.c                                             */
  3. /*------------------------------------------------------------------*/
  4. #include <io.h>
  5. #include <fcntl.h>
  6. #include <sys\stat.h>
  7. #include <share.h>
  8. #include <stdio.h>
  9.  
  10. void main()
  11. {
  12.    int handle;
  13.    char *message = "FoxPro 2.0 ╡{ªí│]¡p --- º▐Ñ⌐╗P╣Ω░╚ ºY▒N╗P▒z¿ú¡▒";
  14.  
  15.    handle = sopen("TEST.TXT", O_RDWR | O_CREAT | O_TRUNC | O_TEXT,
  16.                    SH_DENYNO, S_IREAD | S_IWRITE);
  17.  
  18.  
  19.    if (!handle)
  20.    {
  21.       printf("sopen()  ░⌡ªµÑó▒╤\n");
  22.       exit(1);
  23.    }
  24.    write(handle, message, strlen(message));
  25.  
  26.    close(handle);
  27. }
  28.