Fw: Export file and the use of Append -a
Bob Stockler
bob at trebor.iglou.com
Mon Oct 18 13:38:00 PDT 2004
On Mon, Oct 18, 2004 at 03:23:36PM -0400, Dennis Malen wrote:
| Still have the problem of the append -a with fixed length. I am able to
| append but it does not create a new line for each new append.
|
| pn="/tmp/rnx/rnx"{ex{xlate(@td,"/",""){".wp"
|
| export ascii rnf=(pn) -a
|
| a(10)=@rn;b(9)=6;c(40)=ww;d(40)=27;e(40)="";f(40)=28;g(2)=29;h(10)=13
|
| rnf(1)=a&b&c&d&e&f&g&h;write rnf;close rnf
|
| Do I need one of the following after &h above?:
| 1.&"\n" or
| 2.&chr("10")
You need to use your option #2 - add &chr{"10").
| If anyone can confirm if this is what is to be done to add a new line please
| let me know.
|
| Ken Brody seemed to say that filepro takes care of the new line if you use
| an append -a and that nothing more is necessary. That does not seem to be
| the case.
Ken was correcting my incorrect instructions to you where
I said to end the assignment with & "\n". He corrected
that to be end each line to be exported with:
& chr("10")
What he further said was that filePro takes care of adding
(or not adding) a carriage return before the linefeed,
according to the system it's being run on.
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