Results 1 to 4 of 4

Thread: [Resolved] Weirdness with Binary PUT

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member Arachnid13's Avatar
    Join Date
    Jan 2003
    Location
    England
    Posts
    327

    Resolved [Resolved] Weirdness with Binary PUT

    Take a look at this, make a new project and stick this in the form_load:

    Code:
    Open "C:\bla.txt" For Binary As #1
    Put #1, 1, Space(4096)
    Close #1
    
    Msgbox FileLen("C:\bla.txt")
    Seeing as you just wrote 4096 space characters into the file you would expect the length to be 4096... however the file has a length of 4100! Can anyone explain this?
    Last edited by Arachnid13; Dec 13th, 2007 at 11:14 AM. Reason: Resolved
    Do you wake up in the morning feeling sleepy and grumpy? Then you must be Snow White

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width