Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BINARY FILE write
#5
Define your type for starters:   DIM chracter AS _UNSIGNED _BYTE

I don't see why you don't just:  PUT #1, , chracter

What's the desire to convert it to a string character first with the CHR$ usage?
And why are you putting CHARACTER64 to the file, when you're changing the value of chracter in the SELECT CASE?

Your variable types aren't matching here.   And aren't your values in reverse order?  Bit 0 is normally the 2 ^ 0 bit, while bit 7 is the 2 ^ 7 bit.  Doesn't seem to me like you'd need a SELECT CASE here.  Just a simple:  chracter = character + 2 ^ HORIPIXEL%
Reply


Messages In This Thread
BINARY FILE write - by pmackay - 08-24-2025, 07:01 AM
RE: BINARY FILE write - by SMcNeill - 08-24-2025, 07:35 AM
RE: BINARY FILE write - by pmackay - 08-24-2025, 08:27 AM
RE: BINARY FILE write - by pmackay - 08-24-2025, 09:54 AM
RE: BINARY FILE write - by SMcNeill - 08-24-2025, 05:18 PM
RE: BINARY FILE write - by pmackay - 08-24-2025, 07:08 PM
RE: BINARY FILE write - by dakra137 - 09-29-2025, 01:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question fast file find with wildcards, optional date range, match # bytes, binary compare? madscijr 8 1,296 12-19-2024, 03:55 PM
Last Post: SpriggsySpriggs
  Binary file write eoredson 9 1,564 09-26-2023, 02:25 AM
Last Post: eoredson
  Write data to EXE file Steffan-68 8 1,977 05-15-2023, 06:41 PM
Last Post: Steffan-68

Forum Jump:


Users browsing this thread: 1 Guest(s)