SHARE
TWEET

Untitled

a guest Dec 17th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. #include<string.h>
  4. #define N 20
  5. int main(){
  6.     FILE *fp;
  7.     int n,i;
  8.     int find = 0;
  9.     char a[N];
  10.     gets(a);
  11.     char str[N];
  12.     if((fp=fopen("C:\\Users\\zsm\\Documents\\Debug\\student.txt","w+"))==NULL){
  13.         printf("open error!\n");
  14.         exit(1);
  15.     }
  16.     fgets(str,N,fp);
  17.     puts(str);
  18.     fclose(fp);
  19. //  if(find==0) printf("not find\n");
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top