Re: Adding a column to an existing output file
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Thu, 1 Nov 2007 17:52:14 -0700
<robert.corbett@xxxxxxx> wrote:
On Oct 31, 4:48 am, csocean <csoc...@xxxxxxxxx> wrote:
Does anyone know if there's a way to use APPEND (or something similar)
to add a column to an output file, rather than adding rows at the
end? I need it to grow sideways rather than downwards.
If you are on a UNIX or UNIX-like system, you can write the
new information to a file, and then invoke the system utility
"paste" by a call to the routine SH or SYSTEM.
But while it can be convenient, note that paste doesn't directly modify
the file. It creates a whole new file, which you could then rename if
you wanted. This is exactly equivalent to what Glenn described in saying
that you could write out a new file. With paste, someone else has just
done the work of writing out that code for you. That can be convenient,
but don't think that it magically does what you can't otherwise do -
actually add columns directly to the file. In using it, you are buying
possible convenience - not magic.
(I realize that Bob didn't imply otherwise. I just can imagine people
reading more into it than is there.)
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.
- Follow-Ups:
- Re: Adding a column to an existing output file
- From: Terence
- Re: Adding a column to an existing output file
- References:
- Re: Adding a column to an existing output file
- From: robert . corbett
- Re: Adding a column to an existing output file
- Prev by Date: Re: Adding a column to an existing output file
- Next by Date: Re: type casting problem
- Previous by thread: Re: Adding a column to an existing output file
- Next by thread: Re: Adding a column to an existing output file
- Index(es):
Relevant Pages
|