You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how can we fill empty space in S19 file that is less than 4000 bytes and then create new S19 file?
the issue is how to write?
f = bincopy.BinFile("file1.s19")
print(f.info())
f.fill(value=b'\xFF', max_words=4000) #4000)
print(f.info())
print(type(f))
with open("file2.s19") as s19:
f.write(f.as_srec())
The error is:
f.write(f.as_srec())
AttributeError: 'BinFile' object has no attribute 'write'
thanks
The text was updated successfully, but these errors were encountered:
how can we fill empty space in S19 file that is less than 4000 bytes and then create new S19 file?
the issue is how to write?
The error is:
f.write(f.as_srec())
AttributeError: 'BinFile' object has no attribute 'write'
thanks
The text was updated successfully, but these errors were encountered: