Export file and the use of Append -a
Bob Stockler
bob at trebor.iglou.com
Thu Oct 14 11:37:40 PDT 2004
On Thu, Oct 14, 2004 at 12:07:54PM -0400, Dennis Malen wrote:
|
| Then how does one create a fixed length file and append to it.
I'm not Ken, but . . .
Then: fi = "/tmp/fixed_length_ascii.txt"
Then: export ascii out=(fi) -a
Then: out(1) = 1 & 3 & 5 & 10 & 12 & "\n"
or, if you want to export entire records:
Then: dim record[1](nnn) ' where "nnn" is the filePro record length
Then: fi = "/tmp/fixed_length_ascii.txt"
Then: export ascii out=(fi) -a
Then: out(1) = record["1"] & "\n"
On Windows you'd want to end the assignment to out(1) with:
& "\r" { "\n".
Bob
--
Bob Stockler - bob at trebor.iglou.com
Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User Menus.
Fully functional (time-limited) demos available by email request (specify OS).
More information about the Filepro-list
mailing list