Qbasicnews.com
August 13, 2020, 09:45:16 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: i need help , i'm from chile south america  (Read 1566 times)
arielgodoy
New Member

Posts: 6



« on: May 04, 2004, 07:52:49 PM »

i opened an file in binary with acces write an read and i can`t write into file

say..."BAD File mode" but i can read from

any idea
Logged
Zack
*/-\*
*****
Posts: 3974



WWW
« Reply #1 on: May 04, 2004, 07:58:19 PM »

Having a bit of trouble understanding you there - you opened a file FOR BINARY, and it doesn't let you write? Please post your code.
Logged

f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
arielgodoy
New Member

Posts: 6



« Reply #2 on: May 04, 2004, 08:11:20 PM »

OPEN "$FISC232" FOR BINARY ACCESS READ WRITE AS #12 LEN = 255
Logged
speedlemon
I hold this place together
*****
Posts: 874



« Reply #3 on: May 04, 2004, 10:58:49 PM »

wow, well thats beyond me... :oops:
Logged
adosorken
*/-\*
*****
Posts: 3655



WWW
« Reply #4 on: May 05, 2004, 02:21:30 AM »

1. Skip the ACCESS READ WRITE. BINARY mode is READ/WRITE access by default.
2. Drop the LEN at the end and manually control the size.
3. Static handles are a no-no, and it is likely that you have run out of handles. Use FREEFILE to find the next available handle, assign the value to a variable, and reference the variable instead of a static handle such as #12.

If you don't quite understand what I'm saying, I'll give an example of what I mean. However, this is pretty easy stuff, so you should be able to get the idea and figure it out. Cheesy
Logged

I'd knock on wood, but my desk is particle board.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!