c program to write a string into a file

Write a c program to write a string into a file

<< Go to Index Page >>

3 comments:

  1. #include
    int main()
    {
    FILE *fp;
    fp=fopen("C:/test.txt","w+");
    fprintf(fp,"My name is shohan");
    fclose(fp);
    return 0;
    }

    ReplyDelete
  2. #include
    #include
    int main()
    {
    FILE *fp;
    fp=fopen("E:/FILE/salman.txt","w");
    fprintf(fp,"my name is salman");
    fclose(fp);
    return 0;
    }

    ReplyDelete
  3. Your blog provided us with valuable information to work with. Each & every tip of your post is awesome. programming homework

    ReplyDelete