Thanks.  I'm wouldn't have thought of that!  Good solution.

On 09/23/2014 11:04 PM, Man-wai Chang wrote:
For text file generation, I usually use SET ALTERNATE instead of
low-level file functions.

set console off
set alternative to output.txt
set alternate on

scan
     ?? "blah blah... "
     * newline
     ?
endscan

set alternate off
set alternative to
set console on

A less common trick is the use of TEXT...ENDTEXT.

On Tue, Sep 23, 2014 at 11:47 PM, Kevin Cully
<[email protected]> wrote:
Here's my function that writes out the GEDCOM file. There were some crazy
exceptions that I allowed for with a DO CASE statement.  :(
*=====================================
     iFileHandle = FCREATE( sFileName )
     IF iFileHandle > 0
         SCAN
....
             FPUTS( iFileHandle, sOutput )
         ENDSCAN
         FCLOSE( iFileHandle )
     ENDIF
[email protected]





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to