Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/perl
- $myfile = "/Users/kris/test2.txt";
- open(FH, ">$myfile");
- print FH "Yo Stoney!\n";
- close FH;
- open(FH, "<$myfile");
- #my @lines = <FH>;
- while (my $line = <FH>) {
- print $line;
- }
- close FH;
Add Comment
Please, Sign In to add comment