Guest User

Untitled

a guest
Oct 22nd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.21 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. $myfile = "/Users/kris/test2.txt";
  4. open(FH, ">$myfile");
  5. print FH "Yo Stoney!\n";
  6. close FH;
  7. open(FH, "<$myfile");
  8. #my @lines = <FH>;
  9. while (my $line = <FH>) {
  10.   print $line;
  11. }
  12. close FH;
Add Comment
Please, Sign In to add comment