Hi,
my target is too read all Data from a device ((block is more important than char, but best would be a solution that works on both))
Can u tell me wich funktion i should use?
I tried fread first, but i think there is a Problem with EOF or Newlines.
Code:
while (fread(&buffer, 1, 1, fp) == 1) {
//CODE
}
Greetings,
hd
(Ps.: after that i want to make a md5checksum with mhash of the hole device, but the following code didnt generate the same checksum for a Device, but it does for a small textfile)
Code:
while (fread(&buffer, 1, 1, fp) == 1) {
mhash(td, &buffer, 1);
}