CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    2

    how to use fwrite() in VC++?

    can somebody help me with this function in VC++?
    Thankx
    From Alan.

    From Alan.

  2. #2
    Join Date
    May 1999
    Location
    France
    Posts
    61

    Re: how to use fwrite() in VC++?

    FILE *FPTR = NULL;

    unsigned char Chaine [256] = { "" };

    strcpy ( Chaine, "It's not more complicated !\n Hello from france." );

    FPtr = fopen ( "c:\Tmp.bin", "wb" );

    fwrite ( Chaine, 1, strlen ( Chaine ), FPtr );

    fclose ( FPtr );





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured