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

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat196.c                                             */
  3. /*------------------------------------------------------------------*/
  4. #include <stdio.h>
  5. #include <io.h>
  6.  
  7. void main()
  8. {
  9.    FILE *fp = fopen("test.txt","w");
  10.    int stat;
  11.  
  12.    fprintf(fp,"test");
  13.  
  14.    stat = access("test.txt",0);
  15.    if (stat == 0)
  16.       printf("└╔«╫ªsªb\n");
  17.    else
  18.       printf("└╔«╫ñúªsªb\n");
  19.  
  20.    /* ºR░ú└╔«╫½e╜╨░O▒oѲ├÷│¼└╔«╫ */
  21.    fclose(fp);
  22.    unlink("test.txt");
  23.    stat = access("test.txt",0);
  24.    if (stat == 0)
  25.       printf("└╔«╫ªsªb\n");
  26.    else
  27.       printf("└╔«╫ñúªsªb\n");
  28.  
  29. }
  30.