home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
OL.LZH
/
PROCS.LZH
/
REC2TAB.ICN
< prev
next >
Wrap
Text File
|
1991-09-05
|
622b
|
28 lines
############################################################################
#
# Name: rec2tab.icn
#
# Title: Write record fields as tab-separated string
#
# Author: Ralph E. Griswold
#
# Date: September 2, 1991
#
############################################################################
#
# This procedure writes fields of a record as tab-separated string.
# Carriage returns in files are converted to vertical tabs.
# (Works for lists too.)
#
procedure rec2tab(x)
local i
i := *x - 1
every writes(map(!x, "\n", "\v"),"\t") \ i
write(map(x[-1], "\n", "\v"))
return
end