Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Write a program for file "changing"
#4
I just want to see what people come up with. You see, I can never make code for binary files work. I can make other peoples code work, but if I try to duplicate their code with even slight changes, it doesn't work. So I'm wondering what I'm missing, why other peoples code works, but my version of their code doesn't, why the heck this won't work:

Code:
do
            i = i + 1
            open "C:\binfile.bin" for binary as #1
              open "C:\binfile.bin" for binary as #2
              get #1, i, inbit$
              put #2, i, inbit$
          loop until eof(1)
          close #2
          close #1

I wondered why the heck that doesn't work. Any suggestions?
rogramming is like life - you work first, then play. :bounce: :rotfl: :bounce: :rotfl: :bounce: :rotfl: :bounce: :rotfl: :bounce: :rotfl: :bounce: :rotfl: :bounce:
Reply


Messages In This Thread
Write a program for file "changing" - by Plasma - 04-24-2004, 04:40 AM
Write a program for file "changing" - by Mango - 04-24-2004, 09:04 AM
Well, I don't really need it... - by Wizard Genius - 04-28-2004, 06:35 AM
Write a program for file "changing" - by Anonymous - 04-28-2004, 06:43 AM
Write a program for file "changing" - by CGI Joe - 04-28-2004, 04:38 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)