MD5 Sum

This is a discussion on MD5 Sum within the C++ Programming forums, part of the General Programming Boards category; When you download something big from the net the website offers you the MD5 sum to check if everything was ...

  1. #1
    IM!
    IM! is offline
    Freak! IM!'s Avatar
    Join Date
    Dec 2004
    Location
    Zagreb, Croatia
    Posts
    30

    MD5 Sum

    When you download something big from the net the website offers you the MD5 sum to check if everything was downloaded correct. Well my question is: How can I get the size in bytes of a file? I would then transform it with MD5 and check if it's correct! I just don't get how to get the size, is there any function?
    Check out my Linux/C++ Programming DC++ HUB!
    5 GB min.// 2 slots// 1 GB must be Linux/C++

    HackLinux++

    Cya there!

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    istream::seekg() to the end of the file. Get filelength from istream::tellg()
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Application Repeatition
    By lgcarter in forum C Programming
    Replies: 3
    Last Post: 06-16-2009, 03:07 PM
  2. Replies: 1
    Last Post: 05-28-2009, 02:28 PM
  3. Minor Problem
    By stewie1986 in forum C Programming
    Replies: 6
    Last Post: 11-30-2007, 08:40 AM
  4. a sum equal to or in excess of 100
    By lyoncourt in forum C Programming
    Replies: 6
    Last Post: 10-07-2007, 06:43 PM
  5. string to int conversion not using atoi()
    By linucksrox in forum C Programming
    Replies: 2
    Last Post: 05-19-2004, 01:17 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21