[futurebasic] Re: [FB] Problem opening files created with my program

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2005 : Group Archive : Group : All Groups

From: Stu Cram <stu@...>
Date: Thu, 29 Dec 2005 23:25:14 -0600
On Dec 29, 2005, at 10:35 PM, Stu Cram wrote:

> Brian - Look at the answers sent on Dec 22 as your Xmas present. Same 
> code, same problem, same answers.
> -Stu
>

Sorry - not quite the same code as a week ago but still a very similar 
problem - Be sure the file number used in the OPEN instruction is the 
same as in the PRINT#, READ#, and CLOSE instructions. Other suggestions 
from then still apply also.

Also ...
- you are using READ# incorrectly I think; you need to specify the 
number of bytes to be read in but that is generally unknown the way 
your file is written.
- when you write to the file, variable txt$ can have up to only 255 
characters which is pretty limited for a program in your edit field.
- Use refNumVar% from FILES$ in your OPEN instructions...
	   	OPEN "O",1,fo$, ,refNumVar%  <---- for saving/writing to disk file
and		OPEN "I",2,fo1$, ,refNumVar% <---- for opening/reading from disk 
file.


Check it all carefully...

-Stu