Hello. I need help with a thing.
I have a file (sound file) I will send via controller area network and therefore can only send data about 8 byte or 8 vector as data [8]. This is sent away with the command sendfile ()
And I need help how I will do this code
Stages 1:
I will firstly read in the file to one vector as examples file []. How do I do this? Is there some completed code for this?
Stages 2:
Read in the first 8 vector to data [], then send this.
Stages 3:
Read vector 9 to vector 17 to dates [], then send this.
This happens until the entire file has been sent.
pleas help me to give a basis on how I will intend and to type the code.
///
I must apology for my poor English
Anders
komany 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
komany 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
komany 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.