Python Forum
Split Bytearray into separate Files by Hex delimter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Split Bytearray into separate Files by Hex delimter
#6
(Mar-09-2023, 12:30 AM)lastyle Wrote: What i still dont understand is how do i save the split contents to files with ascending filenames. Somehow i always save the whole array instad of the split chunks

Loop over the output of the split.
Within the loop open a new writable file.
Write the data to the file.

Give it a try and show us the code you've got so far.
Reply


Messages In This Thread
RE: Split Bytearray into separate Files by Hex delimter - by bowlofred - Mar-09-2023, 07:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  send bytearray over UART trix 9 1,654 Sep-30-2024, 01:08 PM
Last Post: trix
  bytearray weirdness or newbee newness Curbie 3 1,098 Sep-18-2024, 01:25 AM
Last Post: deanhystad
  Class test : good way to split methods into several files paul18fr 5 3,586 Jul-17-2024, 11:12 AM
Last Post: felixandrea
  Value error when converting hex value to bytearray shubhamjainj 7 13,213 Mar-20-2023, 05:30 PM
Last Post: Skaperen
  appending to a bytearray Skaperen 21 33,664 Mar-19-2023, 11:05 PM
Last Post: Skaperen
Question Take user input and split files using 7z in python askfriends 2 2,289 Dec-11-2022, 07:39 PM
Last Post: snippsat
  Save multiple Parts of Bytearray to File ? lastyle 1 1,569 Dec-10-2022, 08:09 AM
Last Post: Gribouillis
  bytearray object - why converting to ascii? Chepilo 2 4,704 Nov-21-2022, 07:25 PM
Last Post: Chepilo
  Python Split json into separate json based on node value CzarR 1 9,599 Jul-08-2022, 07:55 PM
Last Post: Larz60+
  importing functions from a separate python file in a separate directory Scordomaniac 3 2,251 May-17-2022, 07:49 AM
Last Post: Pedroski55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020