[futurebasic] Re: [FB] FILES$ (open)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2010 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Mon, 18 Jan 2010 23:01:00 -0700
On Jan 18, 2010, at 10:35 PM, Brian Heibert wrote:

> I got this code to show a open dialog and open a file
> But it isn't working in FBtoC
>
> case _fileopen
> long if ( files$( _FSSpecOpen,, "FSSpecOpen", fileSpec ) )
> open "I", 1, @fileSpec
> while ( eof(1) == 0 )
> line input #1, s
> print s
> wend
> close
> end if
>
> How do you display a open dialog and open a file using FBtoC?


Since that code is almost a perfect copy( 'case _fileopen' is the only  
difference ) of a snippert within the 'Files$ demo' in the FB5  
examples, it should work in FB5. Your problem is elsewhere.

Brian S