Cite This Page
Bibliographic details for Reverse the order of lines in a text file while preserving the contents of each line
- Page name: Reverse the order of lines in a text file while preserving the contents of each line
- Author: Rosetta Code contributors
- Publisher: Rosetta Code.
- Date of last revision: 2 February 2024 12:28 UTC
- Date retrieved: 20 March 2025 18:08 UTC
- Permanent URL: https://rosettacode.org/wiki/Reverse_the_order_of_lines_in_a_text_file_while_preserving_the_contents_of_each_line?oldid=354969
- Page Version ID: 354969
Citation styles for Reverse the order of lines in a text file while preserving the contents of each line
APA style
Reverse the order of lines in a text file while preserving the contents of each line. (2024, February 2). Rosetta Code. Retrieved 18:08, March 20, 2025 from https://rosettacode.org/wiki/Reverse_the_order_of_lines_in_a_text_file_while_preserving_the_contents_of_each_line?oldid=354969.
MLA style
"Reverse the order of lines in a text file while preserving the contents of each line." Rosetta Code. 2 Feb 2024, 12:28 UTC. 20 Mar 2025, 18:08 <https://rosettacode.org/wiki/Reverse_the_order_of_lines_in_a_text_file_while_preserving_the_contents_of_each_line?oldid=354969>.
MHRA style
Rosetta Code contributors, 'Reverse the order of lines in a text file while preserving the contents of each line', Rosetta Code, 2 February 2024, 12:28 UTC, <https://rosettacode.org/wiki/Reverse_the_order_of_lines_in_a_text_file_while_preserving_the_contents_of_each_line?oldid=354969> [accessed 20 March 2025]
Chicago style
Rosetta Code contributors, "Reverse the order of lines in a text file while preserving the contents of each line," Rosetta Code, https://rosettacode.org/wiki/Reverse_the_order_of_lines_in_a_text_file_while_preserving_the_contents_of_each_line?oldid=354969 (accessed March 20, 2025).
CBE/CSE style
Rosetta Code contributors. Reverse the order of lines in a text file while preserving the contents of each line [Internet]. Rosetta Code; 2024 Feb 2, 12:28 UTC [cited 2025 Mar 20]. Available from: https://rosettacode.org/wiki/Reverse_the_order_of_lines_in_a_text_file_while_preserving_the_contents_of_each_line?oldid=354969.
Bluebook style
Reverse the order of lines in a text file while preserving the contents of each line, https://rosettacode.org/wiki/Reverse_the_order_of_lines_in_a_text_file_while_preserving_the_contents_of_each_line?oldid=354969 (last visited March 20, 2025).
BibTeX entry
@misc{ wiki:xxx, author = "Rosetta Code", title = "Reverse the order of lines in a text file while preserving the contents of each line --- Rosetta Code{,} ", year = "2024", url = "https://rosettacode.org/wiki/Reverse_the_order_of_lines_in_a_text_file_while_preserving_the_contents_of_each_line?oldid=354969", note = "[Online; accessed 20-March-2025]" }
When using the LaTeX package url (\usepackage{url}
somewhere in the preamble) which tends to give much more nicely formatted web addresses, the following may be preferred:
@misc{ wiki:xxx, author = "Rosetta Code", title = "Reverse the order of lines in a text file while preserving the contents of each line --- Rosetta Code{,} ", year = "2024", url = "\url{https://rosettacode.org/wiki/Reverse_the_order_of_lines_in_a_text_file_while_preserving_the_contents_of_each_line?oldid=354969}", note = "[Online; accessed 20-March-2025]" }