Hi,
I want to know how to read the binary file from 10th byte to 90th byte in a file size of 100 bytes and need to write the read data into new binary file.
please help me in doing this.
hisan 12 Light Poster
Recommended Answers
Jump to PostYou should be able to read the 100 bytes, split and write. The following code uses 25 bytes and splits from 10 through 20 (11 bytes) for simplicity.
alpha = "abcdefghijklmnopqrstuvwxy" print alpha print alpha[9:20]
All 3 Replies
TrustyTony 888 ex-Moderator Team Colleague Featured Poster
woooee 814 Nearly a Posting Maven
hisan 12 Light 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.