Help for this page

Select Code to Download


  1. or download this
    # open a file for reading in the current directory
    open(FILEHANDLE,"< some_file");
    ...
    
    # be polite and close the file when you're done :)
    close(FILEHANDLE);
    
  2. or download this
    # by the way
    
    ...
    
    # write something to a file
    print FILEHANDLE "some line of text\n";