Unix import of a DOS spreadsheet...

Kenneth Brody kenbrody at spamcop.net
Sat Sep 4 21:07:14 PDT 2010


On 9/4/2010 8:19 PM, John Esak wrote:
[...]
> it do that? I know that the r= is limited only to very specific character
> representations and chr("10") or chr("13) or even r=10 or r=13 (as you
> showed them) are not allowed. So why do you suppose the book shows them as
[...]

The F=, R=, O=, and C= values on the IMPORT/EXPORT lines can take a value 
representing a single character.  You can use the character itself, such as:

     f=,

Or one of a set of backslash codes, as in:

     r=\n

The codes are "\t" for TAB, "\n" for newline, "\r" for carriage return, and 
"\f" for formfeed.  (The "newline" being the system-dependent end-of-line 
character or characters.)

Or "^x" to represent a control character, such as:

     o=^R

Or, finally, it can be the decimal value of the character you wish to use:

     f=32

Note that these are all the same, given the ASCII character set:

     \t  ^I  9
     \n  ^J  10
     \f  ^L  12
     \r  ^M  13

-- 
Kenneth Brody


More information about the Filepro-list mailing list