Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert S19 to S19 file (add empty space and create new S19 file) #43

Open
fncode246 opened this issue Feb 29, 2024 · 0 comments
Open

Comments

@fncode246
Copy link

fncode246 commented Feb 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant