Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

read()

by Parham (Friar)
on Dec 31, 2001 at 07:01 UTC ( #135323=perltutorial: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        open (FILE1, "$original"); 
        open (FILE2, ">$copy"); 
    ...
    
        close (FILE1);
        close (FILE2); 
    
  2. or download this
        open (FILE1, "$original"); 
        while ( read(FILE1,$file_contents,1024) ) { 
          print "$file_contents"; 
        }
        close (FILE1);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://135323]
help
Chatterbox?
[Cow1337killr]: Welcome, jchain.
[Cow1337killr]: Welcome back, Beaker.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2017-02-28 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (402 votes). Check out past polls.