I noticed .readascii() doesn't actually stop at null terminators, making its use without a specified length argument questionable. Now it does so. Incidentally, it also would read the entire rest of the file if a length argument wasn't specified. Now it doesn't do so.
Thanks to @Kingcom for input on streamlining this.
I noticed .readascii() doesn't actually stop at null terminators, making its use without a specified length argument questionable. Now it does so. Incidentally, it also would read the entire rest of the file if a length argument wasn't specified. Now it doesn't do so.
Thanks to @Kingcom for input on streamlining this.