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]
--
.~. Might, Courage, Vision. SINCERITY!
/ v \ 64-bit Ubuntu 9.10 (Linux kernel 2.6.39.3)
/( _ )\ http://sites.google.com/site/changmw
^ ^ May the Force and farces be with you!
_______________________________________________
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/CAGv=mjc8tvbspoi9gp4pzrc_md4mz2oywfsxanu1-xzrfmp...@mail.gmail.com
** 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.