Thread: Displaying an integer checksum in a txt outfile.

  1. #1
    Registered User
    Join Date
    Jul 2013
    Posts
    9

    Displaying an integer checksum in a txt outfile.

    I'm trying to figure out how to get a txt Outfile to display a Checksum.

    Code:
    ChecksumFileDisplay = fopen(ChecksumFileDisplayPath, "r");
     fprintf(ChecksumFileDisplay, BigEndianChecksum);
    That's what I have but it doesn't like the fprintf function because BigEndianChecksum is an unsigned int and it wants a pointer to a const char. Is there a function similar to this that will display an 8 digit integer in a txt outfile?

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    You're missing an argument in your "fprintf()" call. Read what the second argument is expected to be, and see if that makes the error message you received more clear.
    fprintf - C++ Reference

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 2 outfile questions
    By monki000 in forum C++ Programming
    Replies: 2
    Last Post: 04-26-2010, 10:45 PM
  2. outfile problem
    By syrup890 in forum C++ Programming
    Replies: 5
    Last Post: 12-07-2008, 10:59 PM
  3. Outfile problem
    By Mrandrade in forum C++ Programming
    Replies: 0
    Last Post: 04-10-2005, 12:41 PM
  4. Integer displaying crazy numbers issue
    By Razorblade Kiss in forum C++ Programming
    Replies: 16
    Last Post: 12-20-2004, 11:00 PM
  5. Is there a way to sort or search an outfile?
    By Golffor1 in forum C++ Programming
    Replies: 3
    Last Post: 04-24-2003, 11:15 AM

Tags for this Thread