Reverse the order of lines in a text file while preserving the contents of each line: Difference between revisions
Reverse the order of lines in a text file while preserving the contents of each line (view source)
Revision as of 01:37, 4 August 2021
, 2 years ago→Few assumptions: Further assumptions it doesn't make
Thundergnat (talk | contribs) m (→Raku: Fix subheader) |
Thundergnat (talk | contribs) m (→Few assumptions: Further assumptions it doesn't make) |
||
Line 173:
===Few assumptions===
Processes a small (configurable) number of bytes at a time so file can be multi-terabyte and it will handle with ease. ''Does'' assume Latin 1 for reduced complexity.
No assumptions were made concerning line/record termination, full stop.
Run the following to generate nul.txt. (digits 1 through 6 repeated 8 times with double null as record separators):
|