Printing one txt file to a new txt file backwards
- From: apax999@xxxxxxxxx
- Date: 26 Nov 2006 11:54:58 -0800
I need to print an entire text file to a new text file backwards. I
have the following code, but it only prints the first line backwards,
and completely omits all the other lines of the original text file:
open IN, "< $file1";
open OUT, "> $file2";
print OUT reverse split '', <IN>;
close IN;
close OUT;
Any help would be appreciated!
.
- Follow-Ups:
- Re: Printing one txt file to a new txt file backwards
- From: nobull67@xxxxxxxxx
- Re: Printing one txt file to a new txt file backwards
- Prev by Date: Fixing an apache2 perl module
- Next by Date: Re: Printing one txt file to a new txt file backwards
- Previous by thread: Fixing an apache2 perl module
- Next by thread: Re: Printing one txt file to a new txt file backwards
- Index(es):