Printing to a file
Kenneth Brody
kenbrody at bestweb.net
Wed May 26 10:47:02 PDT 2004
George Simon wrote:
>
> Yes, but it is writing the header and the first record. It only barfs when
> it tries to write the next record.
> Anyhow, that problem has been solved. I'm not writing to that directory
> anymore, I'm writing to /tmp and it doesn't give me an error there.
> The problem now is that only the last record and the totals are in the file.
> I guess it is overwriting the file each time.
> How is this avoided in *nix? It (the syntax) would work fine in Windows.
[...]
Are you executing the PRINTER commands on every record? You should do
them only when you actually want to change the output.
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody at spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
More information about the Filepro-list
mailing list