How to copy a certain number of bytes from a file

I have a video file video.yuv
and I want to copy the first 117596160 bytes in the file and make a new file using these bytes

how to achieve this goal?
thank you
Read that many bytes from the source file and write them to a new file.

You might want to break it down into several smaller reads, otherwise you'll have to allocate > 110MB of RAM to read the source file.
I have no idea on how to read and write
can you give me some sample source codes?
thank you!
Topic archived. No new replies allowed.