Hi,
i need to get the Size of a file (e.g. ~/files/hallo.txt) and the size of a deivce (e.g. /dev/sdb).
Is it possible to get both with the same functions?
Do i need to use specific Funktions for block or character devices?
Ps.:
Later i need to reed the whole file/device.
I need the file/device-size to show the progress.
Thx for all answers,
hd