opening an MP3 file for bit access
Hi all,
I need to open a file of extension .mp3 in C. This file needs to give me access to it 8 bits at a time so i can send then down a physical connection. (part of an external system). However im not sure how to open a file in this way. I need advice on how to do the following:-
open file.
read 8 bits into variable (i.e. two hex characters)
loop each time reading the next 8 bits.
any advice would be greatly appreciated ive been trying to open the file in binary mode 'rb' and use 'fread' but have had no success.
Thankyou all for your time