Qbasicnews.com

Full Version: i need help , i'm from chile south america
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
OPEN "$FISC232" FOR BINARY ACCESS READ WRITE AS #12 LEN = 255
wow, well thats beyond me... :oops:
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. Big Grin