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

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat58.c                                              */
  3. /*------------------------------------------------------------------*/
  4.  
  5. #include <stdio.h>
  6. #include <dos.h>
  7. #include <fcntl.h>
  8.  
  9. char buf[] = "FoxPro 2.0 ñº╢}⌐±¼[║c╗P└│Ñ╬╡{ªí¼╔¡▒ API";
  10.  
  11. void main()
  12. {
  13.  int handle;
  14.  unsigned bytes;
  15.  
  16.  if(_dos_creat("MYFILE.TXT",_A_NORMAL,&handle) != 0)
  17.     printf("╡L¬k╢}▒╥└╔«╫ MYFILE.TXT\n");
  18.  else
  19.  {
  20.     printf("└╔«╫ MYFILE.TXT ñwª¿Ñ\\ªa╢}▒╥, ▓{ªb╢}⌐l╝gñJ╕Ω«╞\n");
  21.     /* ▒N╕Ω«╞╝gñJ└╔«╫ññ */
  22.     _dos_write(handle, buf, sizeof(buf), &bytes);
  23.     /* ├÷│¼└╔«╫ */
  24.     _dos_close(handle);
  25.  }
  26. }
  27.