[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Reverse lines in a file?



Norman, you SHOULD be able to do this in one of two ways, employing
XyWrite's data capabilities.
Well, that's rather long. The paragraphs are already in date order, just
the wrong order. So either by hand or by writing a little XPL, Norman can
just copy over each paragraph, one by one, to the top of another window,
and it will push down the paragraphs below it, producing reverse order.

To spell it out, here are the steps:
1. Open "output.txt" (or a name of your choice) in the next available window, (NE OUTPUT.TXT)
2. Go to your original file, which should be in the alternate window (AS)
3. In the original file, Define a Paragraph (DP)
4. Switch to the other window (AS)
5. Go to the top of the file (TF)
6. Copy the paragraph there at the top (CP)
7. Go to step 2 (until done).

Simple as 3.14159.

--Harry

Harry Binswanger
hb@xxxxxxxx