File I/O commands

Don Coleman dcoleman at dgcreact.com
Fri Apr 21 12:09:30 PDT 2006


As a suggestion to solve my log file issue not storing the entire value of a
rather long variable it was suggested that I use the file I/O commands.  I
have not used these before and my apparent misuse of them has caused two
syntax errors.  Can anyone clear my confusion of their use?

Apr 21, 2006  14:30           File Name: KALOS                     Page   1
                             Processing: Kalos_import

  24 -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
         If: 
       Then: BE=OPEN("E:\QS1\TODO\KALOS_FP_LOG.TXT",cwt)
  25 -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
         If: 
       Then: BF=WRITE(BE,BB)

When I check the syntax it errors on the OPEN and WRITE commands.

BE is my handle
E:\QS1\TODO\KALOS_FP_LOG.TXT is the file I want to write to

If the file doesn't exist I want to create it, write permission, text
mode(cwt)

BB is the variable I want to append to the file

Lastly, I didn't see a mode function t signify append to the file as opposed
to over-write.  How do I specify append to the file?


Don Coleman
Donald G. Coleman, Consultant
402 Andrew Circle
Indiana, PA 15701
dcoleman at dgcreact.com
(724) 349-6302





More information about the Filepro-list mailing list