Reverse Rows in a Text File #eg51

Judy - Sep 29 - - Dev Community

Problem description & analysis

Below is text file txt.txt:

abc

123

First line

We are trying to reverse the order of rows to generate a new file as follows:

First line

123

abc

Solution

Write the following script p1.dfx in esProc:

Image description

Explanation:

A1   Reverse the order of rows in the text file and output result to result.txt.

SPL open source address

Download

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player